Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -49,7 +49,11 @@ async def chat_with_model(query: str, model: str):
|
|
49 |
return {"results": results}
|
50 |
except Exception as e:
|
51 |
raise HTTPException(status_code=500, detail=str(e))
|
52 |
-
|
|
|
|
|
|
|
|
|
53 |
|
54 |
if __name__ == "__main__":
|
55 |
import uvicorn
|
|
|
49 |
return {"results": results}
|
50 |
except Exception as e:
|
51 |
raise HTTPException(status_code=500, detail=str(e))
|
52 |
+
@app.get("/health")
|
53 |
+
@app.get("/")
|
54 |
+
async def health_check():
|
55 |
+
logger.info("Health check endpoint called")
|
56 |
+
return {"status": "healthy"}
|
57 |
|
58 |
if __name__ == "__main__":
|
59 |
import uvicorn
|