Skip to content

alynlee/docker-flask-server-pytorch-classification

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask_model_serving_practice

Execute app in local

  1. in terminal FLASK_APP=simpleClassifiler
  2. Enter simpleClassifier folder
  3. in terminal flask run
  4. Open another terminal
  5. in another terminal python test.py

result : {'class_id': 'n02504458', 'class_name': 'African_elephant'}

Using docker

  1. docker build -t alynlee/flask-example ./
  2. docker run -it -p 5000:5000 alynlee/flask-example
  3. Open another terminal
  4. in another terminal curl -X POST -F "file=@simpleClassifiler/img/elephant.jpeg" dockerIP:PORT/predict

result : { "class_id": "n02504458", "class_name": "African_elephant" }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published