Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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']
|