Spaces:
Sleeping
Sleeping
Commit
•
04f2503
1
Parent(s):
d5ecb95
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def transcribe(Microphone, File_Upload):
|
|
33 |
text = sentiment_analysis(result['text'])
|
34 |
|
35 |
label = text[0]['label']
|
36 |
-
|
37 |
return label
|
38 |
|
39 |
iface = gr.Interface(
|
@@ -43,7 +43,8 @@ iface = gr.Interface(
|
|
43 |
gr.inputs.Audio(source="upload", type='filepath', optional=True),
|
44 |
],
|
45 |
outputs=[
|
46 |
-
gr.outputs.Textbox(label="
|
|
|
47 |
],
|
48 |
layout="horizontal",
|
49 |
theme="huggingface",
|
|
|
33 |
text = sentiment_analysis(result['text'])
|
34 |
|
35 |
label = text[0]['label']
|
36 |
+
score = text[0]['score']
|
37 |
return label
|
38 |
|
39 |
iface = gr.Interface(
|
|
|
43 |
gr.inputs.Audio(source="upload", type='filepath', optional=True),
|
44 |
],
|
45 |
outputs=[
|
46 |
+
gr.outputs.Textbox(label="Sentiment"),
|
47 |
+
gr.outputs.Textbox(label="Score")
|
48 |
],
|
49 |
layout="horizontal",
|
50 |
theme="huggingface",
|