Spaces:
Running
Running
Update ui/components.py
Browse files- ui/components.py +6 -6
ui/components.py
CHANGED
|
@@ -169,7 +169,7 @@ def create_text2music_ui(
|
|
| 169 |
value=LYRIC_DEFAULT,
|
| 170 |
)
|
| 171 |
|
| 172 |
-
with gr.Accordion("基本设置", open=False):
|
| 173 |
infer_step = gr.Slider(
|
| 174 |
minimum=1,
|
| 175 |
maximum=200,
|
|
@@ -212,7 +212,7 @@ def create_text2music_ui(
|
|
| 212 |
info="生成种子",
|
| 213 |
)
|
| 214 |
|
| 215 |
-
with gr.Accordion("高级设置", open=False):
|
| 216 |
scheduler_type = gr.Radio(
|
| 217 |
["euler", "heun"],
|
| 218 |
value="euler",
|
|
@@ -291,7 +291,7 @@ def create_text2music_ui(
|
|
| 291 |
|
| 292 |
with gr.Column():
|
| 293 |
outputs, input_params_json = create_output_ui()
|
| 294 |
-
with gr.Tab("重试"):
|
| 295 |
retake_variance = gr.Slider(
|
| 296 |
minimum=0.0, maximum=1.0, step=0.01, value=0.2, label="方差"
|
| 297 |
)
|
|
@@ -344,7 +344,7 @@ def create_text2music_ui(
|
|
| 344 |
],
|
| 345 |
outputs=retake_outputs + [retake_input_params_json],
|
| 346 |
)
|
| 347 |
-
with gr.Tab("重绘"):
|
| 348 |
retake_variance = gr.Slider(
|
| 349 |
minimum=0.0, maximum=1.0, step=0.01, value=0.2, label="方差"
|
| 350 |
)
|
|
@@ -489,7 +489,7 @@ def create_text2music_ui(
|
|
| 489 |
],
|
| 490 |
outputs=repaint_outputs + [repaint_input_params_json],
|
| 491 |
)
|
| 492 |
-
with gr.Tab("编辑"):
|
| 493 |
edit_prompt = gr.Textbox(lines=2, label="编辑标签", max_lines=4)
|
| 494 |
edit_lyrics = gr.Textbox(lines=9, label="编辑歌词", max_lines=13)
|
| 495 |
retake_seeds = gr.Textbox(
|
|
@@ -664,7 +664,7 @@ def create_text2music_ui(
|
|
| 664 |
],
|
| 665 |
outputs=edit_outputs + [edit_input_params_json],
|
| 666 |
)
|
| 667 |
-
with gr.Tab("扩展"):
|
| 668 |
extend_seeds = gr.Textbox(
|
| 669 |
label="扩展种子 (默认为无)", placeholder="", value=None
|
| 670 |
)
|
|
|
|
| 169 |
value=LYRIC_DEFAULT,
|
| 170 |
)
|
| 171 |
|
| 172 |
+
with gr.Accordion("基本设置", open=False, visible=False):
|
| 173 |
infer_step = gr.Slider(
|
| 174 |
minimum=1,
|
| 175 |
maximum=200,
|
|
|
|
| 212 |
info="生成种子",
|
| 213 |
)
|
| 214 |
|
| 215 |
+
with gr.Accordion("高级设置", open=False, visible=False):
|
| 216 |
scheduler_type = gr.Radio(
|
| 217 |
["euler", "heun"],
|
| 218 |
value="euler",
|
|
|
|
| 291 |
|
| 292 |
with gr.Column():
|
| 293 |
outputs, input_params_json = create_output_ui()
|
| 294 |
+
with gr.Tab("重试", visible=False):
|
| 295 |
retake_variance = gr.Slider(
|
| 296 |
minimum=0.0, maximum=1.0, step=0.01, value=0.2, label="方差"
|
| 297 |
)
|
|
|
|
| 344 |
],
|
| 345 |
outputs=retake_outputs + [retake_input_params_json],
|
| 346 |
)
|
| 347 |
+
with gr.Tab("重绘", visible=False):
|
| 348 |
retake_variance = gr.Slider(
|
| 349 |
minimum=0.0, maximum=1.0, step=0.01, value=0.2, label="方差"
|
| 350 |
)
|
|
|
|
| 489 |
],
|
| 490 |
outputs=repaint_outputs + [repaint_input_params_json],
|
| 491 |
)
|
| 492 |
+
with gr.Tab("编辑", visible=False):
|
| 493 |
edit_prompt = gr.Textbox(lines=2, label="编辑标签", max_lines=4)
|
| 494 |
edit_lyrics = gr.Textbox(lines=9, label="编辑歌词", max_lines=13)
|
| 495 |
retake_seeds = gr.Textbox(
|
|
|
|
| 664 |
],
|
| 665 |
outputs=edit_outputs + [edit_input_params_json],
|
| 666 |
)
|
| 667 |
+
with gr.Tab("扩展", visible=False):
|
| 668 |
extend_seeds = gr.Textbox(
|
| 669 |
label="扩展种子 (默认为无)", placeholder="", value=None
|
| 670 |
)
|