nijatzeynalov commited on
Commit
2dc9bb8
1 Parent(s): 38d62de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -30,7 +30,8 @@ def transcribe(Microphone, File_Upload):
30
  file = File_Upload
31
 
32
  result = model.transcribe(file, task="translate")
33
- return sentiment_analysis(result['text'][0]['label'])
 
34
 
35
  iface = gr.Interface(
36
  fn=transcribe,
 
30
  file = File_Upload
31
 
32
  result = model.transcribe(file, task="translate")
33
+ text = sentiment_analysis(result['text'][0]['label'])
34
+ return text
35
 
36
  iface = gr.Interface(
37
  fn=transcribe,