Update app.py
Browse files
app.py
CHANGED
@@ -168,7 +168,7 @@ def generate_music(
|
|
168 |
run_n_segments = min(run_n_segments, len(lyrics)) + 1
|
169 |
|
170 |
@spaces.GPU(duration=178)
|
171 |
-
def generator:
|
172 |
for i, p in enumerate(tqdm(prompt_texts[:run_n_segments])):
|
173 |
section_text = p.replace('[start_of_segment]', '').replace('[end_of_segment]', '')
|
174 |
guidance_scale = 1.5 if i <= 1 else 1.2 # Guidance scale adjusted based on segment index
|
|
|
168 |
run_n_segments = min(run_n_segments, len(lyrics)) + 1
|
169 |
|
170 |
@spaces.GPU(duration=178)
|
171 |
+
def generator():
|
172 |
for i, p in enumerate(tqdm(prompt_texts[:run_n_segments])):
|
173 |
section_text = p.replace('[start_of_segment]', '').replace('[end_of_segment]', '')
|
174 |
guidance_scale = 1.5 if i <= 1 else 1.2 # Guidance scale adjusted based on segment index
|