Hitan2004 commited on
Commit
d9066de
·
1 Parent(s): 0c53a40

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +4 -1
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)))