yaron123 commited on
Commit
0512bac
·
1 Parent(s): e3c6440
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -631,9 +631,9 @@ def handle_generate(artist,song,genre,lyrics):
631
  pos_genre = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", genre)).upper().strip()
632
  pos_lyrics = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", lyrics)).lower().strip()
633
  pos_lyrics_sum = pos_lyrics if pos_lyrics == "" else summarize_text(pos_lyrics)
634
- neg = f"Textual Labeled Distorted Discontinuous Ugly Blurry Low-Quality Worst-Quality Low-Resolution Painted Pastel Vivid Smooth"
635
  q = "\""
636
- pos = f'Rough Realistic Natural Genuine Reasonable Highly-Detailed { pos_genre } { pos_song }{ pos_lyrics_sum if pos_lyrics_sum == "" else " " + q + pos_lyrics_sum + q }'
637
 
638
  print(f"""
639
  Positive: {pos}
 
631
  pos_genre = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", genre)).upper().strip()
632
  pos_lyrics = re.sub(f'[{punctuation}]', '', re.sub("([ \t\n]){1,}", " ", lyrics)).lower().strip()
633
  pos_lyrics_sum = pos_lyrics if pos_lyrics == "" else summarize_text(pos_lyrics)
634
+ neg = f"Textual Labeled Distorted Discontinuous Ugly Blurry Low-Quality Worst-Quality Low-Resolution Painted Smoothed"
635
  q = "\""
636
+ pos = f'Rough Realistic Natural Genuine Reasonable Highly-Detailed { pos_genre } MUSIC GENRE { pos_song }{ pos_lyrics_sum if pos_lyrics_sum == "" else " " + q + pos_lyrics_sum + q }'
637
 
638
  print(f"""
639
  Positive: {pos}