Spaces:
Sleeping
Sleeping
Update asr.py
Browse files
asr.py
CHANGED
@@ -56,5 +56,4 @@ def transcribe_auto(audio_data=None):
|
|
56 |
ids = torch.argmax(outputs, dim=-1)[0]
|
57 |
final_transcription = processor.decode(ids)
|
58 |
|
59 |
-
return f"Detected Language: {
|
60 |
-
ed_lang.upper()}\n\nTranscription:\n{final_transcription}"
|
|
|
56 |
ids = torch.argmax(outputs, dim=-1)[0]
|
57 |
final_transcription = processor.decode(ids)
|
58 |
|
59 |
+
return f"Detected Language: {detected_lang.upper()}\n\nTranscription:\n{final_transcription}"
|
|