WiNE-iNEFF commited on
Commit
202dfcf
1 Parent(s): 7c04462

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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'):