manu commited on
Commit
de76ce9
β€’
1 Parent(s): 43a76ff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,8 +47,8 @@ def inference(audio):
47
  # error = jiwer.wer(passage, result.text)
48
  we_num = error * len(passage.value.split())
49
  # print(f"WER is {we_num}")
50
- # print(result.text)
51
- # print(passage)
52
 
53
  return f"For a {audio_length} second audio, {we_num} errors were made, resulting in a final time of {audio_length + we_num}.\n\n{result.text}", gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
54
 
 
47
  # error = jiwer.wer(passage, result.text)
48
  we_num = error * len(passage.value.split())
49
  # print(f"WER is {we_num}")
50
+ print(result.text)
51
+ print(passage.value)
52
 
53
  return f"For a {audio_length} second audio, {we_num} errors were made, resulting in a final time of {audio_length + we_num}.\n\n{result.text}", gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
54