Adds the backed process for the model including the API end point predict/ accessed as /api/predict at http://your-django-server-ip:8000/api/predict/
Note that when setting this up, you will need to include the model(named final_model.pth) in the /predictions app directory to be able to load the model and make the inferences. Be sure to also adjust the modelpath in the ml_model.py file. Given that the model size is large, I was not able to upload it with the files.
I tested the endpoint using curl and it did work so I expect it to work unless otherwise
Updated the react Native up to consume the endpoint.
This need to be run and tested.
Once everything is running, next is to host the model and expose endpoints
NOTE: You need to setup the server first then the reactapp next for you to hit the end point.
This commit addresses two things;
predict/
accessed as /api/predict athttp://your-django-server-ip:8000/api/predict/
Note that when setting this up, you will need to include the model(named
final_model.pth)
in the/predictions
app directory to be able to load the model and make the inferences. Be sure to also adjust the modelpath in theml_model.py
file. Given that the model size is large, I was not able to upload it with the files.I tested the endpoint using![Screenshot from 2024-06-05 16-17-56](https://github.com/GeekyYouthsInfo/Deep-Learning-Cataract-Detection/assets/78595738/3a916e7a-6ba1-4f74-9e19-6b7261c37a12)
curl
and it did work so I expect it to work unless otherwiseOnce everything is running, next is to host the model and expose endpoints
NOTE: You need to setup the server first then the reactapp next for you to hit the end point.
server spin up command:
app command:
LINK TO MODEL: https://drive.google.com/file/d/19LPH0tCl8oJSkORE_OKt4T2gAJxf62hR/view?usp=sharing