Amir Zait commited on
Commit
0d9345a
1 Parent(s): d8ec8f4

fixed bugs

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(trasncription)
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")