deepak191z commited on
Commit
b1f8565
·
verified ·
1 Parent(s): c349349

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -1
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