Spaces:
Sleeping
Sleeping
Implement create_app function in app_factory.py
Browse files- app_factory.py +7 -0
app_factory.py
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from fastapi import FastAPI
|
| 4 |
+
from app.main import build_app # we'll define build_app in main.py
|
| 5 |
+
|
| 6 |
+
def create_app() -> FastAPI:
|
| 7 |
+
return build_app()
|