Spaces:
Sleeping
Sleeping
Sushwetabm
commited on
Commit
·
cf9564b
1
Parent(s):
7fea25f
Updated main.py
Browse files
main.py
CHANGED
@@ -403,7 +403,13 @@ async def analyze_for_frontend(req: AnalyzeRequest):
|
|
403 |
async def get_analysis_history():
|
404 |
"""Get analysis history (placeholder)"""
|
405 |
return {"data": []}
|
406 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
407 |
if __name__ == "__main__":
|
408 |
import uvicorn
|
409 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
403 |
async def get_analysis_history():
|
404 |
"""Get analysis history (placeholder)"""
|
405 |
return {"data": []}
|
406 |
+
@app.get("/")
|
407 |
+
async def root():
|
408 |
+
return {
|
409 |
+
"message": "👋 Bug Explainer ML microservice is running.",
|
410 |
+
"status": "OK",
|
411 |
+
"model_ready": is_model_loaded()
|
412 |
+
}
|
413 |
if __name__ == "__main__":
|
414 |
import uvicorn
|
415 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|