Spaces:
Sleeping
Sleeping
nijatzeynalov
commited on
Commit
•
3e22122
1
Parent(s):
6d7a88e
Update app.py
Browse files
app.py
CHANGED
@@ -30,7 +30,7 @@ def transcribe(Microphone, File_Upload):
|
|
30 |
file = File_Upload
|
31 |
|
32 |
result = model.transcribe(file, task="translate")
|
33 |
-
return sentiment_analysis(result['text'][0]), sentiment_analysis(result['text'][
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=transcribe,
|
|
|
30 |
file = File_Upload
|
31 |
|
32 |
result = model.transcribe(file, task="translate")
|
33 |
+
return sentiment_analysis(result['text'][0]['label']), sentiment_analysis(result['text'][0]['score'])
|
34 |
|
35 |
iface = gr.Interface(
|
36 |
fn=transcribe,
|