ML Backend with FastAPI
Clone project
git clone https://github.com/CP-Lookin/ml-backend.git
Go to project directory
cd backend-fastapi
Create virtual env
python3 -m venv venv
Activate virtual env
- Mac / Linux
source venv/bin/activate
- Windows
.\venv\Scripts\activate
Install all libraries
pip install requirements.txt
Run project
fastapi dev main.py
POST /predict
Parameter | Type | Description |
---|---|---|
file |
file |
Required. The file to be uploaded for prediction |
You can view this document for an example of the API.