Spaces:
Runtime error
Runtime error
Vaibhav Srivastav
commited on
Commit
·
8a068ad
1
Parent(s):
379fa33
fixed the function call
Browse files
app.py
CHANGED
@@ -58,7 +58,7 @@ def return_all_predictions(input_file):
|
|
58 |
return predict_and_decode(input_file), predict_and_greedy_decode(input_file)
|
59 |
|
60 |
|
61 |
-
gr.Interface(
|
62 |
inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Record/ Drop audio"),
|
63 |
outputs = [gr.outputs.Textbox(label="Beam CTC Decoding"), gr.outputs.Textbox(label="Greedy Decoding")],
|
64 |
title="ASR using Wav2Vec 2.0 & pyctcdecode",
|
|
|
58 |
return predict_and_decode(input_file), predict_and_greedy_decode(input_file)
|
59 |
|
60 |
|
61 |
+
gr.Interface(return_all_predictions,
|
62 |
inputs = gr.inputs.Audio(source="microphone", type="filepath", optional=True, label="Record/ Drop audio"),
|
63 |
outputs = [gr.outputs.Textbox(label="Beam CTC Decoding"), gr.outputs.Textbox(label="Greedy Decoding")],
|
64 |
title="ASR using Wav2Vec 2.0 & pyctcdecode",
|