Dpngtm commited on
Commit
e61150e
·
verified ·
1 Parent(s): 79addda

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -36,7 +36,7 @@ def recognize_emotion(audio):
36
  # Gradio interface with both microphone and file upload options
37
  interface = gr.Interface(
38
  fn=recognize_emotion,
39
- inputs=gr.Audio(source=["microphone", "upload"], type="filepath"),
40
  outputs="text",
41
  title="Emotion Recognition with Wav2Vec2",
42
  description="Upload an audio file or record audio, and the model will predict the emotion."
 
36
  # Gradio interface with both microphone and file upload options
37
  interface = gr.Interface(
38
  fn=recognize_emotion,
39
+ inputs=gr.Audio(sources=["microphone", "upload"], type="filepath"),
40
  outputs="text",
41
  title="Emotion Recognition with Wav2Vec2",
42
  description="Upload an audio file or record audio, and the model will predict the emotion."