Spaces:
Sleeping
Sleeping
Commit
·
b1cee42
1
Parent(s):
a1fcc03
change main to app.main
Browse files- app/main.py +1 -4
app/main.py
CHANGED
|
@@ -12,9 +12,6 @@ import crud, models, schemas
|
|
| 12 |
from database import SessionLocal, engine
|
| 13 |
from callbacks import LogResponseCallback
|
| 14 |
|
| 15 |
-
# import sys
|
| 16 |
-
# import os
|
| 17 |
-
# sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 18 |
|
| 19 |
models.Base.metadata.create_all(bind=engine)
|
| 20 |
|
|
@@ -87,4 +84,4 @@ async def simple_stream(request: Request):
|
|
| 87 |
|
| 88 |
if __name__ == "__main__":
|
| 89 |
import uvicorn
|
| 90 |
-
uvicorn.run("main:app", host="localhost", reload=True, port=8000)
|
|
|
|
| 12 |
from database import SessionLocal, engine
|
| 13 |
from callbacks import LogResponseCallback
|
| 14 |
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
models.Base.metadata.create_all(bind=engine)
|
| 17 |
|
|
|
|
| 84 |
|
| 85 |
if __name__ == "__main__":
|
| 86 |
import uvicorn
|
| 87 |
+
uvicorn.run("app.main:app", host="localhost", reload=True, port=8000)
|