Spaces:
Runtime error
Runtime error
Ahsen Khaliq
commited on
Commit
•
494727f
1
Parent(s):
b31525e
Update app.py
Browse files
app.py
CHANGED
@@ -35,8 +35,6 @@ def inference(audio):
|
|
35 |
assert rate == fs, "mismatch in sampling rate"
|
36 |
nbests = speech2text(speech)
|
37 |
text, *_ = nbests[0]
|
38 |
-
|
39 |
-
print(f"Input Speech: {file_name}")
|
40 |
return f"ASR hypothesis: {text_normalizer(text)}"
|
41 |
|
42 |
inputs = gr.inputs.Audio(label="Input Audio", type="file")
|
|
|
35 |
assert rate == fs, "mismatch in sampling rate"
|
36 |
nbests = speech2text(speech)
|
37 |
text, *_ = nbests[0]
|
|
|
|
|
38 |
return f"ASR hypothesis: {text_normalizer(text)}"
|
39 |
|
40 |
inputs = gr.inputs.Audio(label="Input Audio", type="file")
|