Update app.py
Browse files
app.py
CHANGED
@@ -89,7 +89,7 @@ Add WER interface by Laronix Pty LTD
|
|
89 |
|
90 |
iface = gr.Interface(
|
91 |
fn=calc_mos,
|
92 |
-
inputs=[gr.Audio(
|
93 |
gr.Textbox(placeholder="Input reference here (Don't keep this empty)", label="Reference")],
|
94 |
outputs=[gr.Textbox(placeholder="Naturalness evaluation, ranged 1 to 5, the higher the better.", label="Predicted MOS"),
|
95 |
gr.Textbox(placeholder="Hypothesis", label="Hypothesis"),
|
|
|
89 |
|
90 |
iface = gr.Interface(
|
91 |
fn=calc_mos,
|
92 |
+
inputs=[gr.Audio(source='microphone', type="filepath", label="Audio to evaluate"),
|
93 |
gr.Textbox(placeholder="Input reference here (Don't keep this empty)", label="Reference")],
|
94 |
outputs=[gr.Textbox(placeholder="Naturalness evaluation, ranged 1 to 5, the higher the better.", label="Predicted MOS"),
|
95 |
gr.Textbox(placeholder="Hypothesis", label="Hypothesis"),
|