KingNish commited on
Commit
1438fcb
·
1 Parent(s): f5f8202

modified: app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -218,11 +218,13 @@ def generate_music(
218
  stage1_output_set = []
219
  # Tips:
220
  # genre tags support instrumental,genre,mood,vocal timbr and vocal gender
221
- # all kinds of tags are needed
222
- with open(genre_txt) as f:
223
- genres = f.read().strip()
224
- with open(lyrics_txt) as f:
225
- lyrics = split_lyrics(f.read())
 
 
226
  # intruction
227
  full_lyrics = "\n".join(lyrics)
228
  prompt_texts = [f"Generate music from the given lyrics segment by segment.\n[Genre] {genres}\n{full_lyrics}"]
 
218
  stage1_output_set = []
219
  # Tips:
220
  # genre tags support instrumental,genre,mood,vocal timbr and vocal gender
221
+ # # all kinds of tags are needed
222
+ # with open(genre_txt) as f:
223
+ # genres = f.read().strip()
224
+ # with open(lyrics_txt) as f:
225
+ # lyrics = split_lyrics(f.read())
226
+ genres = genre_txt.strip()
227
+ lyrics = split_lyrics(lyrics_txt)
228
  # intruction
229
  full_lyrics = "\n".join(lyrics)
230
  prompt_texts = [f"Generate music from the given lyrics segment by segment.\n[Genre] {genres}\n{full_lyrics}"]