Spaces:
Sleeping
Sleeping
Michael Hu
commited on
Commit
·
6514e96
1
Parent(s):
f0248ed
fix box is not a valid method in gradio issue
Browse files
app.py
CHANGED
|
@@ -149,20 +149,20 @@ def create_interface():
|
|
| 149 |
|
| 150 |
with gr.Column(scale=1):
|
| 151 |
# TTS Settings
|
| 152 |
-
|
| 153 |
-
|
| 154 |
-
|
| 155 |
-
|
| 156 |
-
|
| 157 |
-
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
-
|
| 162 |
-
|
| 163 |
-
|
| 164 |
-
|
| 165 |
-
|
| 166 |
|
| 167 |
# Output section
|
| 168 |
with gr.Row():
|
|
|
|
| 149 |
|
| 150 |
with gr.Column(scale=1):
|
| 151 |
# TTS Settings
|
| 152 |
+
# Changed from gr.Box() to direct placement in column
|
| 153 |
+
gr.Markdown("### TTS Settings")
|
| 154 |
+
voice_dropdown = gr.Dropdown(
|
| 155 |
+
choices=["Xiaobei (Female)", "Yunjian (Male)"],
|
| 156 |
+
value="Xiaobei (Female)",
|
| 157 |
+
label="Select Voice"
|
| 158 |
+
)
|
| 159 |
+
speed_slider = gr.Slider(
|
| 160 |
+
minimum=0.5,
|
| 161 |
+
maximum=2.0,
|
| 162 |
+
value=1.0,
|
| 163 |
+
step=0.1,
|
| 164 |
+
label="Speech Speed"
|
| 165 |
+
)
|
| 166 |
|
| 167 |
# Output section
|
| 168 |
with gr.Row():
|