Update app.py
Browse files
app.py
CHANGED
@@ -304,11 +304,11 @@ def stage2_inference(model_stage2, stage1_output_set, stage2_output_dir, batch_s
|
|
304 |
return stage2_result
|
305 |
|
306 |
# ----------------------- Main Generation Function (Stage1 + Stage2) -----------------------
|
307 |
-
@spaces.GPU(duration=
|
308 |
def generate_music(
|
309 |
genre_txt="",
|
310 |
lyrics_txt="",
|
311 |
-
max_new_tokens=
|
312 |
run_n_segments=2,
|
313 |
use_audio_prompt=False,
|
314 |
audio_prompt_path="",
|
|
|
304 |
return stage2_result
|
305 |
|
306 |
# ----------------------- Main Generation Function (Stage1 + Stage2) -----------------------
|
307 |
+
@spaces.GPU(duration=180)
|
308 |
def generate_music(
|
309 |
genre_txt="",
|
310 |
lyrics_txt="",
|
311 |
+
max_new_tokens=4,
|
312 |
run_n_segments=2,
|
313 |
use_audio_prompt=False,
|
314 |
audio_prompt_path="",
|