Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import uvicorn
|
2 |
from fastapi import FastAPI
|
3 |
from fastapi.middleware.cors import CORSMiddleware
|
4 |
-
from config import setup_app, agent, logger, patients_collection, analysis_collection, users_collection, chats_collection
|
5 |
from endpoints import create_router
|
6 |
from fastapi import WebSocket, WebSocketDisconnect
|
7 |
|
@@ -31,7 +31,7 @@ async def websocket_endpoint(websocket: WebSocket):
|
|
31 |
setup_app(app)
|
32 |
|
33 |
# Create and include the router with dependencies
|
34 |
-
router = create_router(agent, logger, patients_collection, analysis_collection, users_collection, chats_collection)
|
35 |
app.include_router(router)
|
36 |
|
37 |
if __name__ == "__main__":
|
|
|
1 |
import uvicorn
|
2 |
from fastapi import FastAPI
|
3 |
from fastapi.middleware.cors import CORSMiddleware
|
4 |
+
from config import setup_app, agent, logger, patients_collection, analysis_collection, users_collection, chats_collection, notifications_collection
|
5 |
from endpoints import create_router
|
6 |
from fastapi import WebSocket, WebSocketDisconnect
|
7 |
|
|
|
31 |
setup_app(app)
|
32 |
|
33 |
# Create and include the router with dependencies
|
34 |
+
router = create_router(agent, logger, patients_collection, analysis_collection, users_collection, chats_collection, notifications_collection)
|
35 |
app.include_router(router)
|
36 |
|
37 |
if __name__ == "__main__":
|