Update app.py
Browse files
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(
|
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."
|