-
How to depoly or use the flask app with the machine learning model? |
Beta Was this translation helpful? Give feedback.
Answered by
emerisly
Dec 3, 2022
Replies: 1 comment
-
I recommend this tutorial from medium for a simple flask app. To deployPlease do not run this command unless you know what you are doing To debug with logs on localhostcd into dir: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vivianc2
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I recommend this tutorial from medium for a simple flask app.
To deploy
Please do not run this command unless you know what you are doing
sudo systemctl restart <NAME.service>; sudo systemctl enable <NAME.service>; sudo systemctl restart nginx
To debug with logs on localhost
cd into dir:
cd ~/web
run flask with gunicorn on localhost:
/opt/conda/envs/pytorch/bin/gunicorn -b localhost:5000 app:app
run url, example:
curl localhost:5000/coord