modified: app.py
Browse files
app.py
CHANGED
@@ -154,6 +154,7 @@ def generate_music(genres, lyrics_content, num_segments_run, max_new_tokens_run)
|
|
154 |
stage1_output_set_local = [] # Modified: Local variable to store output paths
|
155 |
|
156 |
lyrics = split_lyrics(lyrics_content)
|
|
|
157 |
# intruction
|
158 |
full_lyrics = "\n".join(lyrics)
|
159 |
prompt_texts = [f"Generate music from the given lyrics segment by segment.\n[Genre] {genres}\n{full_lyrics}"]
|
|
|
154 |
stage1_output_set_local = [] # Modified: Local variable to store output paths
|
155 |
|
156 |
lyrics = split_lyrics(lyrics_content)
|
157 |
+
print(len(lyrics))
|
158 |
# intruction
|
159 |
full_lyrics = "\n".join(lyrics)
|
160 |
prompt_texts = [f"Generate music from the given lyrics segment by segment.\n[Genre] {genres}\n{full_lyrics}"]
|