Spaces:
Paused
Paused
UI enhacements
Browse files
app.py
CHANGED
|
@@ -300,6 +300,7 @@ with gr.Blocks(js=js) as demo:
|
|
| 300 |
with gr.Tab("TTS"):
|
| 301 |
with gr.Column() as row4:
|
| 302 |
with gr.Row() as col4:
|
|
|
|
| 303 |
speaker_name_studio = gr.Dropdown(
|
| 304 |
label="Studio speaker",
|
| 305 |
choices=STUDIO_SPEAKERS.keys(),
|
|
@@ -309,9 +310,8 @@ with gr.Blocks(js=js) as demo:
|
|
| 309 |
label="Cloned speaker",
|
| 310 |
choices=cloned_speaker_names.value,
|
| 311 |
value=cloned_speaker_names.value[0] if len(cloned_speaker_names.value) != 0 else None,
|
| 312 |
-
)
|
| 313 |
-
|
| 314 |
-
with gr.Column() as rowAdvanced:
|
| 315 |
with gr.Row() as rowAdvanced:
|
| 316 |
temperature = gr.Slider(0.00, 1.00, 0.5, step=0.05, label="Temperature", info="Choose between 0 and 1")
|
| 317 |
top_p = gr.Slider(0.00, 1.00, 0.8, step=0.05, label="TOP P", info="Choose between 0 and 1")
|
|
|
|
| 300 |
with gr.Tab("TTS"):
|
| 301 |
with gr.Column() as row4:
|
| 302 |
with gr.Row() as col4:
|
| 303 |
+
speaker_type = gr.Dropdown(label="Speaker type", choices=["Studio", "Cloned"], value="Studio")
|
| 304 |
speaker_name_studio = gr.Dropdown(
|
| 305 |
label="Studio speaker",
|
| 306 |
choices=STUDIO_SPEAKERS.keys(),
|
|
|
|
| 310 |
label="Cloned speaker",
|
| 311 |
choices=cloned_speaker_names.value,
|
| 312 |
value=cloned_speaker_names.value[0] if len(cloned_speaker_names.value) != 0 else None,
|
| 313 |
+
)
|
| 314 |
+
with gr.Accordion("Advanced options", open=False):
|
|
|
|
| 315 |
with gr.Row() as rowAdvanced:
|
| 316 |
temperature = gr.Slider(0.00, 1.00, 0.5, step=0.05, label="Temperature", info="Choose between 0 and 1")
|
| 317 |
top_p = gr.Slider(0.00, 1.00, 0.8, step=0.05, label="TOP P", info="Choose between 0 and 1")
|