Spaces:
Runtime error
Runtime error
Commit
·
2e740d1
1
Parent(s):
65d8241
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ def classify_sentiment(audio, model):
|
|
10 |
|
11 |
|
12 |
input_audio = [gr.inputs.Audio(source="microphone", type="filepath", label="Record/ Drop audio"), gr.inputs.Dropdown(["DrishtiSharma/wav2vec2-base-finetuned-sentiment-mesd-v11", "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd"], label="Model Name")]
|
13 |
-
label = gr.outputs
|
14 |
|
15 |
gr.Interface(
|
16 |
fn = classify_sentiment,
|
|
|
10 |
|
11 |
|
12 |
input_audio = [gr.inputs.Audio(source="microphone", type="filepath", label="Record/ Drop audio"), gr.inputs.Dropdown(["DrishtiSharma/wav2vec2-base-finetuned-sentiment-mesd-v11", "hackathon-pln-es/wav2vec2-base-finetuned-sentiment-mesd"], label="Model Name")]
|
13 |
+
label = gr.outputs(num_top_classes=5)
|
14 |
|
15 |
gr.Interface(
|
16 |
fn = classify_sentiment,
|