Update app.py
Browse files
app.py
CHANGED
@@ -197,7 +197,7 @@ with gr.Blocks() as demo:
|
|
197 |
result_html = gr.HTML(label="🧪 Health Report Table")
|
198 |
result_image = gr.Image(label="📷 Key Frame Snapshot")
|
199 |
|
200 |
-
submit_btn.click(fn=lambda mode,
|
201 |
|
202 |
gr.Markdown("""---
|
203 |
✅ Table Format • AI Prediction • rPPG-based HR • Dynamic Summary • Multilingual Support • CTA""")
|
|
|
197 |
result_html = gr.HTML(label="🧪 Health Report Table")
|
198 |
result_image = gr.Image(label="📷 Key Frame Snapshot")
|
199 |
|
200 |
+
submit_btn.click(fn=lambda mode, file: analyze_video(file) if mode=="Video" else analyze_face(file), inputs=[mode_selector, video_input], outputs=[result_html, result_image])
|
201 |
|
202 |
gr.Markdown("""---
|
203 |
✅ Table Format • AI Prediction • rPPG-based HR • Dynamic Summary • Multilingual Support • CTA""")
|