nijatzeynalov commited on
Commit
d5ecb95
·
1 Parent(s): 8aa718a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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
- print(sentiment_analysis(result['text']))
34
 
35
- text = sentiment_analysis(result['text'][0]['label'])
36
 
37
- return text
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,