Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
# Face Detection-Based AI Automation of Lab Tests
|
2 |
-
# Gradio App -
|
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,
|