Ahsen Khaliq commited on
Commit
99e31bc
1 Parent(s): e00575e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -39,11 +39,7 @@ def inference(audio):
39
  text, *_ = nbests[0]
40
 
41
  print(f"Input Speech: {file_name}")
42
- display(Audio(speech, rate=rate))
43
- librosa.display.waveplot(speech, sr=rate)
44
- plt.show()
45
- print(f"ASR hypothesis: {text_normalizer(text)}")
46
- print("*" * 50)
47
 
48
  inputs = gr.inputs.Audio(label="Input Audio", type="file")
49
  outputs = gr.outputs.Textbox(label="Output Text")
 
39
  text, *_ = nbests[0]
40
 
41
  print(f"Input Speech: {file_name}")
42
+ return f"ASR hypothesis: {text_normalizer(text)}"
 
 
 
 
43
 
44
  inputs = gr.inputs.Audio(label="Input Audio", type="file")
45
  outputs = gr.outputs.Textbox(label="Output Text")