Spaces:
Runtime error
Runtime error
Amir Zait
commited on
Commit
•
0d9345a
1
Parent(s):
d8ec8f4
fixed bugs
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def parse_transcription(wav_file):
|
|
58 |
logits = asr_model(input_values).logits
|
59 |
predicted_ids = torch.argmax(logits, dim=-1)
|
60 |
transcription = asr_processor.decode(predicted_ids[0], skip_special_tokens=True)
|
61 |
-
translated = he_en_translator(
|
62 |
return translated
|
63 |
|
64 |
output = gr.outputs.Textbox(label="TEXT")
|
|
|
58 |
logits = asr_model(input_values).logits
|
59 |
predicted_ids = torch.argmax(logits, dim=-1)
|
60 |
transcription = asr_processor.decode(predicted_ids[0], skip_special_tokens=True)
|
61 |
+
translated = he_en_translator(transcription)
|
62 |
return translated
|
63 |
|
64 |
output = gr.outputs.Textbox(label="TEXT")
|