Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,12 @@ def inference_text(audio):
|
|
37 |
result=sentiment_task(text)
|
38 |
return result
|
39 |
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
app=gr.Interface(title="Speech Sentiment Classification",fn=inference_text,inputs=[audio],outputs=gr.DataFrame())
|
43 |
|
|
|
37 |
result=sentiment_task(text)
|
38 |
return result
|
39 |
|
40 |
+
audio = gr.Audio(
|
41 |
+
label="Input Audio",
|
42 |
+
show_label=False,
|
43 |
+
source="microphone",
|
44 |
+
type="filepath"
|
45 |
+
)
|
46 |
|
47 |
app=gr.Interface(title="Speech Sentiment Classification",fn=inference_text,inputs=[audio],outputs=gr.DataFrame())
|
48 |
|