Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def classify_sentiment(audio):
|
|
| 12 |
pred = pipe(audio)
|
| 13 |
return {dic["label"]: dic["score"] for dic in pred}
|
| 14 |
|
| 15 |
-
input_audio = [gr.Audio(
|
| 16 |
label = gr.Label(num_top_classes=5)
|
| 17 |
|
| 18 |
################### Gradio Web APP ################################
|
|
|
|
| 12 |
pred = pipe(audio)
|
| 13 |
return {dic["label"]: dic["score"] for dic in pred}
|
| 14 |
|
| 15 |
+
input_audio = [gr.Audio(sources=["microphone"], type="filepath", label="Record/ Drop audio")]
|
| 16 |
label = gr.Label(num_top_classes=5)
|
| 17 |
|
| 18 |
################### Gradio Web APP ################################
|