CSCI401 / Fall 2024
- Install Python 3.8 or later
- Install the required packages with
pip install -r requirements.txt
Prepare the dataset by going into the "scraper" folder with command cd scraper
and running python scraper.py --journal "Medical Case Reports"
. This will download a articles.sqlite file containing a database of medical documents.
At the root directory, create a file called credentials.py
and add the OpenAI API key as a variable called OPENAI_API_KEY
. To create the OpenAI API Key, you would need to setup an OpenAI account. Please refer to this website for more details. OpenAI Setup Documentation
$ cd ai-diagnosis-system/src/backend
$ source venv/bin/activate
$ python app.py
$ cd ai-diagnosis-system
$ npm run dev (if not working, run 'npm run build' first)
If the backend, especially the OpenAI API call is not working, it is most likely because credentials.py
was not placed in the right directory.
If a problem occurs, try running everything again. These errors are rare (and we have tried our best to mitigate this), but because the AI is not stable, it can cause errors.