#194: implement negative tags for text2audio

This commit is contained in:
Skelp
2025-05-17 18:14:29 +02:00
parent 7a5718bbfb
commit c3abb45241
2 changed files with 69 additions and 9 deletions
+10
View File
@@ -174,6 +174,15 @@ def create_text2music_ui(
scale=9,
)
with gr.Row():
negative_prompt = gr.Textbox(
lines=1,
label="Negative Tags",
info="Elements you want to avoid in the generated music (only effective when no EFG is used)",
max_lines=4,
scale=9,
)
# Add the change event for the preset dropdown
genre_preset.change(
fn=update_tags_from_preset,
@@ -949,6 +958,7 @@ def create_text2music_ui(
format,
audio_duration,
prompt,
negative_prompt,
lyrics,
infer_step,
guidance_scale,