Yaron Koresh commited on
Commit
464bb16
·
verified ·
1 Parent(s): 477d1e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1286,7 +1286,7 @@ def handle_generation(artist,song,genre,lyrics):
1286
  lyrics_lines = re.split(r"([\n]){1,}", lyrics)
1287
 
1288
  for line_index in range(len(lyrics_lines)):
1289
- if re.sub(f'[{punctuation}]$', '', lyrics_lines[line_index]) == lyrics_lines[line_index]):
1290
  lyrics_lines[line_index] = lyrics_lines[line_index] + "."
1291
  lyrics = " ".join(lyrics_lines)
1292
 
 
1286
  lyrics_lines = re.split(r"([\n]){1,}", lyrics)
1287
 
1288
  for line_index in range(len(lyrics_lines)):
1289
+ if re.sub(f'[{punctuation}]$', '', lyrics_lines[line_index]) == lyrics_lines[line_index]:
1290
  lyrics_lines[line_index] = lyrics_lines[line_index] + "."
1291
  lyrics = " ".join(lyrics_lines)
1292