mugnaidaniele / REST-API-with-PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

REST-API-with-PyTorch

Run

$ cd REST-API-with-PyTorch 
$ make build 
$ make run 

On another shell:

$ python
>>> import requests
>>> file = open('<PATH/img.jpg','rb')
>>> resp = request.post(""http://localhost:5000/predict",
        files={"file": file})
>>> resp.json()

About


Languages

Language:Python 79.0%Language:Makefile 12.3%Language:Dockerfile 8.7%