Spaces:
Sleeping
Sleeping
Commit
·
d5ecb95
1
Parent(s):
8aa718a
Update app.py
Browse files
app.py
CHANGED
@@ -30,11 +30,11 @@ def transcribe(Microphone, File_Upload):
|
|
30 |
file = File_Upload
|
31 |
|
32 |
result = model.transcribe(file, task="translate")
|
33 |
-
|
34 |
|
35 |
-
|
36 |
|
37 |
-
return
|
38 |
|
39 |
iface = gr.Interface(
|
40 |
fn=transcribe,
|
|
|
30 |
file = File_Upload
|
31 |
|
32 |
result = model.transcribe(file, task="translate")
|
33 |
+
text = sentiment_analysis(result['text'])
|
34 |
|
35 |
+
label = text[0]['label']
|
36 |
|
37 |
+
return label
|
38 |
|
39 |
iface = gr.Interface(
|
40 |
fn=transcribe,
|