-
Clone the project repository first
-
Go to the project directory and do the following.
-
Make the docker image of the project using the following command:
sudo docker build -t backend:latest -f Dockerfile .
-
Run the following command to run the project
sudo docker run -p 8000:8000 backend:latest
-
Send POST Request to this endpoint
http://0.0.0.0:8000/api/recommend-doc
-
Sample Input
{ "symptoms" : "leg pain with difficulty to walk" }
-
Sample Output
{ "data": [ { "Osteoarthristis": "Rheumatologist" }, { "Arthritis": "Rheumatologist" } ] }
- Notice Your python version should be 3.8.x
- python3.8 -m venv venv
- Activate your virtual environment
- pip install -r requirements.txt
- python -m spacy download en_core_web_md
- python -m pip install https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_md-0.5.1.tar.gz
- cd HospitalManagement
- python manage.py runserver
- Send POST Request to this endpoint
http://0.0.0.0:8000/api/recommend-doc
- Sample Input
{ "symptoms" : "leg pain with difficulty to walk" }
- Sample Output
{ "data": [ { "Osteoarthristis": "Rheumatologist" }, { "Arthritis": "Rheumatologist" } ] }