Commit
·
52a24a8
1
Parent(s):
35219cb
Update app.py
Browse files
app.py
CHANGED
|
@@ -25,8 +25,8 @@ def promptgen(choice, num, artist):
|
|
| 25 |
if prompt[rand-1].startswith('art by') and artists_num < artist:
|
| 26 |
artists_num +=1
|
| 27 |
generated.append(prompt[rand-1])
|
| 28 |
-
|
| 29 |
-
|
| 30 |
print(' '.join(set(generated)) + '\n')
|
| 31 |
return ' '.join(set(generated))
|
| 32 |
|
|
|
|
| 25 |
if prompt[rand-1].startswith('art by') and artists_num < artist:
|
| 26 |
artists_num +=1
|
| 27 |
generated.append(prompt[rand-1])
|
| 28 |
+
elif not prompt[rand-1].startswith('art by'):
|
| 29 |
+
generated.append(prompt[rand-1])
|
| 30 |
print(' '.join(set(generated)) + '\n')
|
| 31 |
return ' '.join(set(generated))
|
| 32 |
|