KevinGeng commited on
Commit
8275b12
1 Parent(s): de9cd28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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(type='microphone', 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"),
 
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"),