KevinGeng commited on
Commit
15263a7
1 Parent(s): 9b98548

sort INTEL NAT output

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -82,7 +82,7 @@ def calc_mos(audio_path, ref):
82
  wav_vad = torchaudio.functional.vad(wav, sample_rate=sr)
83
  ppm = len(lst_phonemes) / (wav_vad.shape[-1] / sr) * 60
84
 
85
- return AVA_MOS, trans, INTELI_score, phone_transcription, ppm
86
 
87
 
88
  description ="""
@@ -100,9 +100,9 @@ iface = gr.Interface(
100
  fn=calc_mos,
101
  inputs=[gr.Audio(type='filepath', label="Audio to evaluate"),
102
  gr.Textbox(placeholder="Input reference here (Don't keep this empty)", label="Reference")],
103
- outputs=[gr.Textbox(placeholder="Naturalness Score, ranged from 0 to 5, the higher the better.", label="Naturalness Score, ranged from 0 to 5, the higher the better."),
104
- gr.Textbox(placeholder="Hypothesis", label="Hypothesis"),
105
  gr.Textbox(placeholder="Intelligibility Score", label = "Intelligibility Score, range from 0 to 100, the higher the better"),
 
106
  gr.Textbox(placeholder="Predicted Phonemes", label="Predicted Phonemes"),
107
  gr.Textbox(placeholder="Speaking Rate, Phonemes per minutes", label="PPM")],
108
  title="Laronix's Voice Quality Checking System Demo",
 
82
  wav_vad = torchaudio.functional.vad(wav, sample_rate=sr)
83
  ppm = len(lst_phonemes) / (wav_vad.shape[-1] / sr) * 60
84
 
85
+ return AVA_MOS, INTELI_score, trans, phone_transcription, ppm
86
 
87
 
88
  description ="""
 
100
  fn=calc_mos,
101
  inputs=[gr.Audio(type='filepath', label="Audio to evaluate"),
102
  gr.Textbox(placeholder="Input reference here (Don't keep this empty)", label="Reference")],
103
+ outputs=[gr.Textbox(placeholder="Naturalness Score", label="Naturalness Score, ranged from 0 to 5, the higher the better."),
 
104
  gr.Textbox(placeholder="Intelligibility Score", label = "Intelligibility Score, range from 0 to 100, the higher the better"),
105
+ gr.Textbox(placeholder="Hypothesis", label="Hypothesis"),
106
  gr.Textbox(placeholder="Predicted Phonemes", label="Predicted Phonemes"),
107
  gr.Textbox(placeholder="Speaking Rate, Phonemes per minutes", label="PPM")],
108
  title="Laronix's Voice Quality Checking System Demo",