Spaces:
Sleeping
Sleeping
Update main.py
Browse files
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=
|
|
|
|
| 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)
|