Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -4,8 +4,6 @@ from contextlib import asynccontextmanager
|
|
4 |
import logging
|
5 |
from api.endpoints import location
|
6 |
|
7 |
-
app = FastAPI(lifespan=lifespan)
|
8 |
-
|
9 |
@asynccontextmanager
|
10 |
async def lifespan(app: FastAPI):
|
11 |
# initialize_nlp()
|
@@ -18,5 +16,7 @@ async def lifespan(app: FastAPI):
|
|
18 |
|
19 |
yield
|
20 |
|
|
|
|
|
21 |
app.include_router(location.router, prefix="/location/api/v1")
|
22 |
|
|
|
4 |
import logging
|
5 |
from api.endpoints import location
|
6 |
|
|
|
|
|
7 |
@asynccontextmanager
|
8 |
async def lifespan(app: FastAPI):
|
9 |
# initialize_nlp()
|
|
|
16 |
|
17 |
yield
|
18 |
|
19 |
+
app = FastAPI(lifespan=lifespan)
|
20 |
+
|
21 |
app.include_router(location.router, prefix="/location/api/v1")
|
22 |
|