Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -234,7 +234,7 @@ with gr.Blocks(css="""
|
|
| 234 |
audio_btn = gr.Button("Send Audio")
|
| 235 |
audio_btn.click(handle_audio, inputs=[audio_input, chat_history, user_profile], outputs=[chatbot_audio], queue=False)
|
| 236 |
with gr.Tab("📸 Webcam Mode"):
|
| 237 |
-
img_upload = gr.Image(
|
| 238 |
posture_output = gr.Textbox(label="Posture Feedback")
|
| 239 |
posture_btn = gr.Button("Analyze Posture")
|
| 240 |
posture_btn.click(classify_image, inputs=[img_upload], outputs=[posture_output])
|
|
|
|
| 234 |
audio_btn = gr.Button("Send Audio")
|
| 235 |
audio_btn.click(handle_audio, inputs=[audio_input, chat_history, user_profile], outputs=[chatbot_audio], queue=False)
|
| 236 |
with gr.Tab("📸 Webcam Mode"):
|
| 237 |
+
img_upload = gr.Image(type="pil", label="Upload an Image")
|
| 238 |
posture_output = gr.Textbox(label="Posture Feedback")
|
| 239 |
posture_btn = gr.Button("Analyze Posture")
|
| 240 |
posture_btn.click(classify_image, inputs=[img_upload], outputs=[posture_output])
|