FastAPI
Last updated
Integration with FastAPI.
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>")Import path is the path used as if the file/module is being imported using python syntax via import, __import__ or importlib.import_module
Last updated