Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
99e31bc
1
Parent(s):
e00575e
Update app.py
Browse files
app.py
CHANGED
@@ -39,11 +39,7 @@ def inference(audio):
|
|
39 |
text, *_ = nbests[0]
|
40 |
|
41 |
print(f"Input Speech: {file_name}")
|
42 |
-
|
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")
|