Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -133,10 +133,8 @@ def score_speech_fn(current_prompt, user_wav, fbc):
|
|
| 133 |
#print('WORD FB:', word_feedback)
|
| 134 |
#print('PHONE FB', phone_feedback)
|
| 135 |
|
| 136 |
-
#disp_fb = display0(collected_info)
|
| 137 |
disp_fb = f'## Einkunn/gæði: {task_feedback}'
|
| 138 |
|
| 139 |
-
# colorised html version....
|
| 140 |
#return ''.join([ hc_from_3(self.phone_3sort_monophone(score,label)) for label,score in scores_list ])
|
| 141 |
disp_fb2 = ' '.join([''.join([fbc.hc_from_3(sc3,phid) for sc3,phid in wphones]) for wrd, wphones in phone_feedback])
|
| 142 |
#disp_fb2 = ' '.join([htxt for wrd, htxt in phone_feedback])
|
|
@@ -173,11 +171,9 @@ def dev_opts_fn(check_box,phone_output_keyinfo):
|
|
| 173 |
if check_box: # user has just turned ON extra options
|
| 174 |
new_key = phone_output_keyinfo + energy_key
|
| 175 |
new_vis = True
|
| 176 |
-
|
| 177 |
else:
|
| 178 |
new_key = phone_output_keyinfo[:-len(energy_key)]
|
| 179 |
new_vis = False
|
| 180 |
-
|
| 181 |
return [new_key,
|
| 182 |
gr.update(value= _disp_scorertype('...'),visible=new_vis),
|
| 183 |
gr.update(value=(fb_params['lb'], fb_params['ub']),visible=new_vis),
|
|
|
|
| 133 |
#print('WORD FB:', word_feedback)
|
| 134 |
#print('PHONE FB', phone_feedback)
|
| 135 |
|
|
|
|
| 136 |
disp_fb = f'## Einkunn/gæði: {task_feedback}'
|
| 137 |
|
|
|
|
| 138 |
#return ''.join([ hc_from_3(self.phone_3sort_monophone(score,label)) for label,score in scores_list ])
|
| 139 |
disp_fb2 = ' '.join([''.join([fbc.hc_from_3(sc3,phid) for sc3,phid in wphones]) for wrd, wphones in phone_feedback])
|
| 140 |
#disp_fb2 = ' '.join([htxt for wrd, htxt in phone_feedback])
|
|
|
|
| 171 |
if check_box: # user has just turned ON extra options
|
| 172 |
new_key = phone_output_keyinfo + energy_key
|
| 173 |
new_vis = True
|
|
|
|
| 174 |
else:
|
| 175 |
new_key = phone_output_keyinfo[:-len(energy_key)]
|
| 176 |
new_vis = False
|
|
|
|
| 177 |
return [new_key,
|
| 178 |
gr.update(value= _disp_scorertype('...'),visible=new_vis),
|
| 179 |
gr.update(value=(fb_params['lb'], fb_params['ub']),visible=new_vis),
|