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