Spaces:
Sleeping
Sleeping
MusaedMusaedSadeqMusaedAl-Fareh225739
commited on
Commit
·
650866a
1
Parent(s):
83d1a09
update app.py
Browse files- mrrrme/backend/app.py +2 -2
mrrrme/backend/app.py
CHANGED
|
@@ -27,7 +27,7 @@ app.include_router(auth_router, prefix="/api")
|
|
| 27 |
app.include_router(debug_router, prefix="/api/debug")
|
| 28 |
|
| 29 |
# WebSocket endpoint
|
| 30 |
-
app.
|
| 31 |
|
| 32 |
@app.on_event("startup")
|
| 33 |
async def startup_event():
|
|
@@ -57,4 +57,4 @@ async def health():
|
|
| 57 |
return {
|
| 58 |
"status": "healthy",
|
| 59 |
"models_ready": models_ready
|
| 60 |
-
}
|
|
|
|
| 27 |
app.include_router(debug_router, prefix="/api/debug")
|
| 28 |
|
| 29 |
# WebSocket endpoint
|
| 30 |
+
app.websocket("/ws")(websocket_endpoint) # ← FIXED LINE
|
| 31 |
|
| 32 |
@app.on_event("startup")
|
| 33 |
async def startup_event():
|
|
|
|
| 57 |
return {
|
| 58 |
"status": "healthy",
|
| 59 |
"models_ready": models_ready
|
| 60 |
+
}
|