SuriRaja commited on
Commit
f8f4a14
·
verified ·
1 Parent(s): ba85c99

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -190,14 +190,15 @@ with gr.Blocks() as demo:
190
  """)
191
  with gr.Row():
192
  with gr.Column():
193
- mode_selector = gr.Radio(label="Choose Input Mode", choices=["Image", "Video"], value="Image")
194
- video_input = gr.Video(label="📽 Upload Face Video or Image", sources=["upload", "webcam"])
195
- submit_btn = gr.Button("🔍 Analyze")
196
  with gr.Column():
197
  result_html = gr.HTML(label="🧪 Health Report Table")
198
  result_image = gr.Image(label="📷 Key Frame Snapshot")
199
- mode_selector = gr.Radio(label="Choose Input Mode", choices=["Image", "Video"], value="Image")
200
- submit_btn.click(fn=lambda mode, video, image: analyze_video(video) if mode=="Video" else analyze_face(image), inputs=[mode_selector, video_input, video_input], outputs=[result_html, result_image])
 
201
  gr.Markdown("""---
202
  ✅ Table Format • AI Prediction • rPPG-based HR • Dynamic Summary • Multilingual Support • CTA""")
203
 
 
190
  """)
191
  with gr.Row():
192
  with gr.Column():
193
+ mode_selector = gr.Radio(label="Choose Input Mode", choices=["Image", "Video"], value="Image")
194
+ video_input = gr.Video(label="📽 Upload Face Video or Image", sources=["upload", "webcam"])
195
+ submit_btn = gr.Button("🔍 Analyze")
196
  with gr.Column():
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, video, image: analyze_video(video) if mode=="Video" else analyze_face(image), inputs=[mode_selector, video_input, video_input], outputs=[result_html, result_image])
201
+
202
  gr.Markdown("""---
203
  ✅ Table Format • AI Prediction • rPPG-based HR • Dynamic Summary • Multilingual Support • CTA""")
204