Spaces:
Paused
Paused
fixed ready endpoint
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ async def health_check():
|
|
| 41 |
content={"status": "healthy", "model_loaded": model_manager.is_loaded}
|
| 42 |
)
|
| 43 |
|
| 44 |
-
@app.get("/
|
| 45 |
async def readiness_check():
|
| 46 |
"""Readiness check endpoint"""
|
| 47 |
if model_manager.is_loaded:
|
|
|
|
| 41 |
content={"status": "healthy", "model_loaded": model_manager.is_loaded}
|
| 42 |
)
|
| 43 |
|
| 44 |
+
@app.get("/ready", status_code=status.HTTP_200_OK)
|
| 45 |
async def readiness_check():
|
| 46 |
"""Readiness check endpoint"""
|
| 47 |
if model_manager.is_loaded:
|