Spaces:
Running
on
Zero
Running
on
Zero
Update ui/components.py
Browse files- ui/components.py +3 -4
ui/components.py
CHANGED
@@ -139,17 +139,16 @@ def create_text2music_ui(
|
|
139 |
with gr.Column(scale=2):
|
140 |
with gr.Group():
|
141 |
gr.Markdown("""<center>支持标签、描述和场景。使用逗号分隔不同的标签。<br>标签和歌词示例来自AI音乐生成社区。</center>""")
|
142 |
-
|
143 |
-
genre_preset = gr.Dropdown(
|
144 |
choices=["自定义 (Custom)"] + list(GENRE_PRESETS.keys()),
|
145 |
value="自定义 (Custom)",
|
146 |
label="预设",
|
147 |
scale=1,
|
148 |
)
|
149 |
-
|
150 |
lines=1,
|
151 |
label="标签",
|
152 |
-
max_lines=
|
153 |
value=TAG_DEFAULT,
|
154 |
scale=9,
|
155 |
)
|
|
|
139 |
with gr.Column(scale=2):
|
140 |
with gr.Group():
|
141 |
gr.Markdown("""<center>支持标签、描述和场景。使用逗号分隔不同的标签。<br>标签和歌词示例来自AI音乐生成社区。</center>""")
|
142 |
+
genre_preset = gr.Dropdown(
|
|
|
143 |
choices=["自定义 (Custom)"] + list(GENRE_PRESETS.keys()),
|
144 |
value="自定义 (Custom)",
|
145 |
label="预设",
|
146 |
scale=1,
|
147 |
)
|
148 |
+
prompt = gr.Textbox(
|
149 |
lines=1,
|
150 |
label="标签",
|
151 |
+
max_lines=10,
|
152 |
value=TAG_DEFAULT,
|
153 |
scale=9,
|
154 |
)
|