barto17 commited on
Commit
cd7b02a
·
1 Parent(s): 0f2ccca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -117,7 +117,7 @@ def transcribe(Microphone, File_Upload):
117
  pred_ids = torch.argmax(logits, dim=-1)
118
  transcription = processor.decode(pred_ids[0])
119
 
120
- detect_language(transcription.capitalize())
121
 
122
 
123
  examples=['sample1.mp3', 'sample2.mp3', 'sample3.mp3']
 
117
  pred_ids = torch.argmax(logits, dim=-1)
118
  transcription = processor.decode(pred_ids[0])
119
 
120
+ return detect_language(transcription.capitalize())
121
 
122
 
123
  examples=['sample1.mp3', 'sample2.mp3', 'sample3.mp3']