Vadym Myroshnyk commited on
Commit
615e634
·
1 Parent(s): 7ec9108
Files changed (1) hide show
  1. service/oral/oral_service.py +5 -5
service/oral/oral_service.py CHANGED
@@ -81,11 +81,6 @@ def oral_exercise(audio_dir: str, expected_result_dir: str):
81
  with gr.Column():
82
  gr.Markdown(f"**{line_index + 1}. {speaker if speaker else 'Sentence'}**")
83
 
84
- acc = gr.Accordion("🔍 View all correct options", open=False, visible=False)
85
- with acc:
86
- gr.Markdown("<br>".join([f"• {v}" for v in variants]))
87
- accordion_outputs.append(acc)
88
-
89
  with gr.Row():
90
  mic = gr.Audio(sources=["microphone"], type="filepath", label="🎤 Your recording")
91
  output = gr.Textbox(
@@ -96,6 +91,11 @@ def oral_exercise(audio_dir: str, expected_result_dir: str):
96
  interactive=False
97
  )
98
 
 
 
 
 
 
99
  fb = gr.HTML(elem_id=f"feedback-{line_index}")
100
  diff = gr.HTML(elem_id=f"diff-{line_index}")
101
 
 
81
  with gr.Column():
82
  gr.Markdown(f"**{line_index + 1}. {speaker if speaker else 'Sentence'}**")
83
 
 
 
 
 
 
84
  with gr.Row():
85
  mic = gr.Audio(sources=["microphone"], type="filepath", label="🎤 Your recording")
86
  output = gr.Textbox(
 
91
  interactive=False
92
  )
93
 
94
+ acc = gr.Accordion("🔍 View all correct options", open=False, visible=False)
95
+ with acc:
96
+ gr.Markdown("<br>".join([f"• {v}" for v in variants]))
97
+ accordion_outputs.append(acc)
98
+
99
  fb = gr.HTML(elem_id=f"feedback-{line_index}")
100
  diff = gr.HTML(elem_id=f"diff-{line_index}")
101