Spaces:
Running
Running
commit
Browse files
app.py
CHANGED
@@ -144,7 +144,7 @@ def handle_generate(artist,song,genre,lyrics):
|
|
144 |
pos_song = re.sub("([ \t\n]){1,}", " ", song).strip()
|
145 |
pos_song = ' '.join(word[0].upper() + word[1:] for word in pos_song.split())
|
146 |
pos_genre = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", genre)).upper().strip()
|
147 |
-
pos_lyrics = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ",
|
148 |
neg = f"Textual Labeled Distorted Discontinuous Ugly Blurry"
|
149 |
pos = f'Realistic Natural Genuine Reasonable Detailed { pos_genre } GENRE SONG COVER FOR { pos_song }: "{ pos_lyrics }"'
|
150 |
|
|
|
144 |
pos_song = re.sub("([ \t\n]){1,}", " ", song).strip()
|
145 |
pos_song = ' '.join(word[0].upper() + word[1:] for word in pos_song.split())
|
146 |
pos_genre = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", genre)).upper().strip()
|
147 |
+
pos_lyrics = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", lyrics)).lower().strip()
|
148 |
neg = f"Textual Labeled Distorted Discontinuous Ugly Blurry"
|
149 |
pos = f'Realistic Natural Genuine Reasonable Detailed { pos_genre } GENRE SONG COVER FOR { pos_song }: "{ pos_lyrics }"'
|
150 |
|