yunusajib commited on
Commit
3eebee3
·
verified ·
1 Parent(s): 054ccd5
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -254,8 +254,9 @@ with gr.Blocks(title="Patient Emotion Recognition", theme="soft") as demo:
254
 
255
  with gr.Row():
256
  with gr.Column():
257
- video_input = gr.Image(label="Live Camera Feed", source="webcam", streaming=True)
258
- audio_input = gr.Audio(label="Voice Input", source="microphone", type="numpy")
 
259
  submit_btn = gr.Button("Analyze Emotions")
260
 
261
  with gr.Column():
 
254
 
255
  with gr.Row():
256
  with gr.Column():
257
+ # Updated Image component without 'source' parameter
258
+ video_input = gr.Image(label="Live Camera Feed", streaming=True)
259
+ audio_input = gr.Audio(label="Voice Input", sources=["microphone"], type="numpy")
260
  submit_btn = gr.Button("Analyze Emotions")
261
 
262
  with gr.Column():