Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -308,8 +308,8 @@ def stage2_inference(model_stage2, stage1_output_set, stage2_output_dir, batch_s
|
|
308 |
def generate_music(
|
309 |
genre_txt="",
|
310 |
lyrics_txt="",
|
311 |
-
max_new_tokens=
|
312 |
-
run_n_segments=
|
313 |
use_audio_prompt=False,
|
314 |
audio_prompt_path="",
|
315 |
prompt_start_time=0.0,
|
@@ -555,7 +555,7 @@ with gr.Blocks() as demo:
|
|
555 |
genre_txt = gr.Textbox(label="Genre", placeholder="e.g. Bass Metalcore Thrash Metal Furious bright vocal male")
|
556 |
lyrics_txt = gr.Textbox(label="Lyrics", placeholder="Paste lyrics with segments such as [verse], [chorus], etc.")
|
557 |
with gr.Column():
|
558 |
-
num_segments = gr.Number(label="Number of Segments", value=
|
559 |
max_new_tokens = gr.Slider(label="Duration of song (sec)", minimum=1, maximum=30, step=1, value=15, interactive=True)
|
560 |
use_audio_prompt = gr.Checkbox(label="Use Audio Prompt", value=False)
|
561 |
audio_prompt_path = gr.Textbox(label="Audio Prompt Filepath (if used)", placeholder="Path to audio file")
|
|
|
308 |
def generate_music(
|
309 |
genre_txt="",
|
310 |
lyrics_txt="",
|
311 |
+
max_new_tokens=2,
|
312 |
+
run_n_segments=1,
|
313 |
use_audio_prompt=False,
|
314 |
audio_prompt_path="",
|
315 |
prompt_start_time=0.0,
|
|
|
555 |
genre_txt = gr.Textbox(label="Genre", placeholder="e.g. Bass Metalcore Thrash Metal Furious bright vocal male")
|
556 |
lyrics_txt = gr.Textbox(label="Lyrics", placeholder="Paste lyrics with segments such as [verse], [chorus], etc.")
|
557 |
with gr.Column():
|
558 |
+
num_segments = gr.Number(label="Number of Segments", value=2, interactive=True)
|
559 |
max_new_tokens = gr.Slider(label="Duration of song (sec)", minimum=1, maximum=30, step=1, value=15, interactive=True)
|
560 |
use_audio_prompt = gr.Checkbox(label="Use Audio Prompt", value=False)
|
561 |
audio_prompt_path = gr.Textbox(label="Audio Prompt Filepath (if used)", placeholder="Path to audio file")
|