Spaces:
Running
Running
Yaron Koresh
commited on
Update app.py
Browse files
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 |
|