maahikachitagi commited on
Commit
980eae5
Β·
verified Β·
1 Parent(s): b261dbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -215,7 +215,8 @@ with gr.Blocks() as demo:
215
 
216
  # βœ… Step 4: Webcam Posture Check
217
  gr.Markdown("### Step 4: Webcam Posture Check")
218
- webcam = gr.Camera(label="Capture Posture", type="pil")
 
219
  posture_output = gr.Textbox(label="Posture Feedback")
220
  posture_btn = gr.Button("Analyze Posture")
221
  posture_btn.click(classify_image, inputs=[webcam], outputs=[posture_output])
 
215
 
216
  # βœ… Step 4: Webcam Posture Check
217
  gr.Markdown("### Step 4: Webcam Posture Check")
218
+ webcam = gr.Image(source="webcam", label="Capture Posture")
219
+
220
  posture_output = gr.Textbox(label="Posture Feedback")
221
  posture_btn = gr.Button("Analyze Posture")
222
  posture_btn.click(classify_image, inputs=[webcam], outputs=[posture_output])