Spaces:
Sleeping
Sleeping
commit
Browse files
app.py
CHANGED
@@ -434,8 +434,8 @@ pegasus_name = "google/pegasus-xsum"
|
|
434 |
# precision data
|
435 |
|
436 |
seq=512
|
437 |
-
width=
|
438 |
-
height=
|
439 |
image_steps=8
|
440 |
img_accu=0
|
441 |
|
@@ -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"
|
635 |
q = "\""
|
636 |
-
pos = f'Realistic
|
637 |
|
638 |
print(f"""
|
639 |
Positive: {pos}
|
|
|
434 |
# precision data
|
435 |
|
436 |
seq=512
|
437 |
+
width=1536
|
438 |
+
height=1536
|
439 |
image_steps=8
|
440 |
img_accu=0
|
441 |
|
|
|
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 Soft"
|
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}
|