Spaces:
Runtime error
Runtime error
fix typo
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def transcribe(audio_file, language: str):
|
|
20 |
if orig_freq != freq:
|
21 |
waveform = AF.resample(waveform, orig_freq, freq)
|
22 |
|
23 |
-
return transcriber(waveform,
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
transcriber = Transcribe()
|
|
|
20 |
if orig_freq != freq:
|
21 |
waveform = AF.resample(waveform, orig_freq, freq)
|
22 |
|
23 |
+
return transcriber(waveform, language_dict[language]), audio_file.name
|
24 |
|
25 |
if __name__ == "__main__":
|
26 |
transcriber = Transcribe()
|