Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Path: blob/master/utils/flask_rest_api/README.md
Views: 475
Flask REST API
REST APIs are commonly used to expose Machine Learning (ML) models to other services. This folder contains an example REST API created using Flask to expose the YOLOv5s model from PyTorch Hub.
Requirements
Flask is required. Install with:
Run
After Flask installation run:
Then use curl to perform a request:
The model inference results are returned as a JSON response:
An example python script to perform inference using requests is given in example_request.py