maahikachitagi commited on
Commit
6d24a43
·
verified ·
1 Parent(s): ec044e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -268,7 +268,7 @@ with gr.Blocks(css="""
268
  audio_btn.click(handle_audio, inputs=[audio_input, chat_history, user_profile], outputs=[chatbot_audio], queue=False)
269
 
270
  with gr.Tab("📸 Webcam Mode"):
271
- img_upload = gr.Image(source="webcam", type="pil", label="Capture Posture")
272
  posture_output = gr.Textbox(label="Posture Feedback")
273
  posture_btn = gr.Button("Analyze Posture")
274
  posture_btn.click(classify_image, inputs=[img_upload], outputs=[posture_output])
 
268
  audio_btn.click(handle_audio, inputs=[audio_input, chat_history, user_profile], outputs=[chatbot_audio], queue=False)
269
 
270
  with gr.Tab("📸 Webcam Mode"):
271
+ img_upload = gr.Image(type="pil", label="Upload an Image")
272
  posture_output = gr.Textbox(label="Posture Feedback")
273
  posture_btn = gr.Button("Analyze Posture")
274
  posture_btn.click(classify_image, inputs=[img_upload], outputs=[posture_output])