WiNE-iNEFF
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -22,7 +22,7 @@ def promptgen(choice, num, artist):
|
|
22 |
artists_num = 0
|
23 |
while len(sorted(set(generated), key=lambda d: generated.index(d))) < int(num):
|
24 |
rand = random.choice(prompt)
|
25 |
-
if rand.startswith('art by') and artists_num < artist:
|
26 |
artists_num +=1
|
27 |
generated.append(rand)
|
28 |
elif not rand.startswith('art by'):
|
|
|
22 |
artists_num = 0
|
23 |
while len(sorted(set(generated), key=lambda d: generated.index(d))) < int(num):
|
24 |
rand = random.choice(prompt)
|
25 |
+
if rand.startswith('art by') and artists_num < int(artist):
|
26 |
artists_num +=1
|
27 |
generated.append(rand)
|
28 |
elif not rand.startswith('art by'):
|