-
Install dependencies:
pip install -r requirements.txt
-
Start the app:
python app.py
- Runs on
https://0.0.0.0:5001 - To change the port or disable SSL, edit
app.py:
uvicorn.run('app:app', port=YOUR_PORT, ssl_keyfile=None, ssl_certfile=None)
- Runs on
-
API can only access image files in
IMAGE_DIR(default:./). To change the directory, editIMAGE_DIRinapp.py. -
Place a unique JSON file in
jsons/(followjsons/demo.jsonfor format).
Access the API at:
https://localhost:5001/image/