Prev was by 03 and i solved error by him in this one
Browse files
app.py
CHANGED
@@ -276,10 +276,10 @@ def stage2_inference(model_stage2, stage1_output_set, stage2_output_dir, batch_s
|
|
276 |
# ----------------------- Main Generation Function (Stage1 + Stage2) -----------------------
|
277 |
@spaces.GPU(duration=120)
|
278 |
def generate_music(
|
279 |
-
max_new_tokens=5,
|
280 |
-
run_n_segments=2,
|
281 |
genre_txt="",
|
282 |
lyrics_txt="",
|
|
|
|
|
283 |
use_audio_prompt=False,
|
284 |
audio_prompt_path="",
|
285 |
prompt_start_time=0.0,
|
@@ -590,7 +590,7 @@ Living out my dreams with this mic and a deal
|
|
590 |
)
|
591 |
submit_btn.click(
|
592 |
fn=generate_music,
|
593 |
-
inputs=[
|
594 |
outputs=[music_out, vocal_out, instrumental_out]
|
595 |
)
|
596 |
gr.Markdown("## Contributions Welcome\nFeel free to contribute improvements or fixes.")
|
|
|
276 |
# ----------------------- Main Generation Function (Stage1 + Stage2) -----------------------
|
277 |
@spaces.GPU(duration=120)
|
278 |
def generate_music(
|
|
|
|
|
279 |
genre_txt="",
|
280 |
lyrics_txt="",
|
281 |
+
max_new_tokens=5,
|
282 |
+
run_n_segments=2,
|
283 |
use_audio_prompt=False,
|
284 |
audio_prompt_path="",
|
285 |
prompt_start_time=0.0,
|
|
|
590 |
)
|
591 |
submit_btn.click(
|
592 |
fn=generate_music,
|
593 |
+
inputs=[genre_txt, lyrics_txt, max_new_tokens, num_segments, use_audio_prompt, audio_prompt_path],
|
594 |
outputs=[music_out, vocal_out, instrumental_out]
|
595 |
)
|
596 |
gr.Markdown("## Contributions Welcome\nFeel free to contribute improvements or fixes.")
|