IDKHowToCodeFr commited on
Commit
abcd4eb
·
verified ·
1 Parent(s): 72cb4ef

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. backend/main.py +6 -0
backend/main.py CHANGED
@@ -71,6 +71,12 @@ class PatientData(BaseModel):
71
  Diastolic_BP: float
72
  Body_Temp: float
73
 
 
 
 
 
 
 
74
  @app.get("/health")
75
  def health_check():
76
  return {"status": "Healthy" if get_ensemble() else "Warning - Models Offline"}
 
71
  Diastolic_BP: float
72
  Body_Temp: float
73
 
74
+ from fastapi.responses import RedirectResponse
75
+
76
+ @app.get("/")
77
+ def read_root():
78
+ return RedirectResponse(url="/docs")
79
+
80
  @app.get("/health")
81
  def health_check():
82
  return {"status": "Healthy" if get_ensemble() else "Warning - Models Offline"}