eligapris commited on
Commit
21b4bd9
·
verified ·
1 Parent(s): c53a149

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +8 -1
main.py CHANGED
@@ -75,6 +75,13 @@ async def search_with_content_endpoint(request: SearchWithContentRequest):
75
  except Exception as e:
76
  raise HTTPException(status_code=500, detail=str(e))
77
 
 
 
 
 
 
 
 
78
  if __name__ == "__main__":
79
  import uvicorn
80
- uvicorn.run(app, host="0.0.0.0", port=8000)
 
75
  except Exception as e:
76
  raise HTTPException(status_code=500, detail=str(e))
77
 
78
+
79
+ @app.get("/health")
80
+ async def health_check():
81
+ return {"status": "healthy"}
82
+
83
+
84
+
85
  if __name__ == "__main__":
86
  import uvicorn
87
+ uvicorn.run(app, host="0.0.0.0", port=7860)