FastAPI
Integration with FastAPI.
Setup
Setup FastAPI project.
Configure pyot models and pipelines.
Import conf file in startup event.
# Other imports ...
from pyot.conf.utils import import_confs
# FastAPI stuff ...
@app.on_event("startup")
async def startup_tasks():
import_confs("<pyotconf_import_path>")
Last updated