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