SuriRaja commited on
Commit
9ff4823
·
verified ·
1 Parent(s): e1711af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -1,5 +1,5 @@
1
  # Face Detection-Based AI Automation of Lab Tests
2
- # Gradio App - Cleaned and Fixed for Hugging Face Compatibility
3
 
4
  import gradio as gr
5
  import cv2
@@ -113,11 +113,10 @@ def analyze_face(image):
113
  f"- Respiratory Rate: {rr} breaths/min - {get_risk_color(rr, (12, 20))}",
114
  "- Blood Pressure: Low (simulated)",
115
 
116
- "### ⚠️ Risk Flags",
117
  ] + [f"- {flag}" for flag in flags]
118
 
119
- return "
120
- ".join(report_lines), frame_rgb
121
 
122
  demo = gr.Interface(
123
  fn=analyze_face,
 
1
  # Face Detection-Based AI Automation of Lab Tests
2
+ # Gradio App - Stable Deployment Version for Hugging Face
3
 
4
  import gradio as gr
5
  import cv2
 
113
  f"- Respiratory Rate: {rr} breaths/min - {get_risk_color(rr, (12, 20))}",
114
  "- Blood Pressure: Low (simulated)",
115
 
116
+ "### ⚠️ Risk Flags"
117
  ] + [f"- {flag}" for flag in flags]
118
 
119
+ return "\n".join(report_lines), frame_rgb
 
120
 
121
  demo = gr.Interface(
122
  fn=analyze_face,