KevinGeng commited on
Commit
ac46a87
1 Parent(s): 3a56ad6

current remove PPM and phonemes

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -95,7 +95,8 @@ def calc_mos(audio_path, ref):
95
  ppm = len(lst_phonemes) / (wav_vad.shape[-1] / sr) * 60
96
 
97
  # pdb.set_trace()
98
- return AVA_MOS, MOS_fig, INTELI_score, INT_fig, trans, phone_transcription, ppm, f0_db_fig
 
99
 
100
 
101
  with open("local/description.md") as f:
@@ -117,13 +118,14 @@ iface = gr.Interface(
117
  gr.Textbox(placeholder="Intelligibility Score", label = "Intelligibility Score, range from 0 to 100, the higher the better", visible=False),
118
  gr.Plot(label="Intelligibility Score, range from 0 to 100, the higher the better", show_label=True, container=True),
119
  gr.Textbox(placeholder="Hypothesis", label="Hypothesis"),
120
- gr.Textbox(placeholder="Predicted Phonemes", label="Predicted Phonemes", visible=False),
121
- gr.Textbox(placeholder="Speaking Rate, Phonemes per minutes", label="Speaking Rate, Phonemes per minutes", visible=False),
122
  gr.Plot(label="Pitch Contour and dB Analysis", show_label=True, container=True)],
123
  title="Speech Analysis by Laronix AI",
124
  description=description,
125
  allow_flagging="auto",
126
  examples=examples,
127
- )
 
 
 
128
  # add password to protect the interface
129
  iface.launch(share=False, auth=['Laronix', 'LaronixSLP'], auth_message="Authentication Required, ask kevin@laronix.com for password.\n Thanks for your cooperation!")
 
95
  ppm = len(lst_phonemes) / (wav_vad.shape[-1] / sr) * 60
96
 
97
  # pdb.set_trace()
98
+ # return AVA_MOS, MOS_fig, INTELI_score, INT_fig, trans, phone_transcription, ppm, f0_db_fig
99
+ return AVA_MOS, MOS_fig, INTELI_score, INT_fig, trans, f0_db_fig
100
 
101
 
102
  with open("local/description.md") as f:
 
118
  gr.Textbox(placeholder="Intelligibility Score", label = "Intelligibility Score, range from 0 to 100, the higher the better", visible=False),
119
  gr.Plot(label="Intelligibility Score, range from 0 to 100, the higher the better", show_label=True, container=True),
120
  gr.Textbox(placeholder="Hypothesis", label="Hypothesis"),
 
 
121
  gr.Plot(label="Pitch Contour and dB Analysis", show_label=True, container=True)],
122
  title="Speech Analysis by Laronix AI",
123
  description=description,
124
  allow_flagging="auto",
125
  examples=examples,
126
+ )
127
+ # Currently remove PPM and Phonemes
128
+ # gr.Textbox(placeholder="Predicted Phonemes", label="Predicted Phonemes", visible=False),
129
+ # gr.Textbox(placeholder="Speaking Rate, Phonemes per minutes", label="Speaking Rate, Phonemes per minutes", visible=False),
130
  # add password to protect the interface
131
  iface.launch(share=False, auth=['Laronix', 'LaronixSLP'], auth_message="Authentication Required, ask kevin@laronix.com for password.\n Thanks for your cooperation!")