Update spoken_module.py
Browse files- 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 |
|