Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -106,4 +106,7 @@ def clear_session(session_id: str):
|
|
| 106 |
|
| 107 |
@app.get("/health")
|
| 108 |
def health():
|
| 109 |
-
return {"status": "ok", "indexes_loaded": _indexes_loaded()}
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
@app.get("/health")
|
| 108 |
def health():
|
| 109 |
+
return {"status": "ok", "indexes_loaded": _indexes_loaded()}
|
| 110 |
+
if __name__ == "__main__":
|
| 111 |
+
import uvicorn
|
| 112 |
+
uvicorn.run(app, host="0.0.0.0", port=int(os.getenv("PORT", 8000)))
|