Skip to content

How to depoly or use the flask app with the machine learning model #40

Answered by emerisly
vivianc2 asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vivianc2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants