deploy-pytorch-model icon indicating copy to clipboard operation
deploy-pytorch-model copied to clipboard

A Simple PyTorch deep learning REST API

This repository contains the code of 如何用flask部署pytorch模型

Starting the pytorch server

python run_pytorch_server.py 

You can now access the REST API via http://127.0.0.1:5000/predict

Submitting requests to pytorch server

python simple_request.py --file='file_path'

Acknowledgement

This repository refers to jrosebr1/simple-keras-rest-api, and thank the author again.