Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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(
|
| 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])
|