ankban commited on
Commit
5af6f15
Β·
verified Β·
1 Parent(s): 3b4e5b2

Update spoken_module.py

Browse files
Files changed (1) hide show
  1. spoken_module.py +3 -3
spoken_module.py CHANGED
@@ -68,7 +68,7 @@ def spoken_dashboard(nickname):
68
  </div>
69
  """)
70
 
71
- with gr.Row():
72
  language_dropdown = gr.Dropdown(label="🌍 Language", choices=list(LANG_CODES.keys()), value="English")
73
  goal_dropdown = gr.Dropdown(label="🎯 Goal", choices=[
74
  "Interview preparation", "Public speaking", "Class presentation", "General improvement"
@@ -77,7 +77,7 @@ def spoken_dashboard(nickname):
77
  "Clarity", "Structure", "Fluency", "Tone", "Content Relevance"
78
  ], value=["Clarity", "Structure", "Fluency", "Tone", "Content Relevance"])
79
 
80
- with gr.Row():
81
  audio_input = gr.Audio(type="filepath", label="πŸŽ™ Speak or Upload Audio")
82
  audio_output = gr.Audio(label="πŸ”Š Feedback Audio", type="filepath")
83
 
@@ -85,7 +85,7 @@ def spoken_dashboard(nickname):
85
  feedback_box = gr.Textbox(label="πŸ’‘ Feedback", interactive=False)
86
  hidden_transcript = gr.Textbox(visible=False)
87
 
88
- with gr.Row():
89
  try_again = gr.Button("πŸ” Try Again")
90
  show_example = gr.Button("🎯 Show Example")
91
 
 
68
  </div>
69
  """)
70
 
71
+ with gr.Row(elem_classes=["top-control-row"]):
72
  language_dropdown = gr.Dropdown(label="🌍 Language", choices=list(LANG_CODES.keys()), value="English")
73
  goal_dropdown = gr.Dropdown(label="🎯 Goal", choices=[
74
  "Interview preparation", "Public speaking", "Class presentation", "General improvement"
 
77
  "Clarity", "Structure", "Fluency", "Tone", "Content Relevance"
78
  ], value=["Clarity", "Structure", "Fluency", "Tone", "Content Relevance"])
79
 
80
+ with gr.Row(elem_classes=["audio-row"]):
81
  audio_input = gr.Audio(type="filepath", label="πŸŽ™ Speak or Upload Audio")
82
  audio_output = gr.Audio(label="πŸ”Š Feedback Audio", type="filepath")
83
 
 
85
  feedback_box = gr.Textbox(label="πŸ’‘ Feedback", interactive=False)
86
  hidden_transcript = gr.Textbox(visible=False)
87
 
88
+ with gr.Row(elem_classes=["text-columns"]):
89
  try_again = gr.Button("πŸ” Try Again")
90
  show_example = gr.Button("🎯 Show Example")
91