WiNE-iNEFF commited on
Commit
da674af
·
1 Parent(s): bb9061f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def promptgen(choice, num, artist):
52
  vocab = len(prompt)
53
  generated = []
54
  artists_num = 0
55
- with open('gen_prompt.txt', 'wb') as f:
56
  while len(sorted(set(generated), key=lambda d: generated.index(d))) < num:
57
  rand = random.randint(0, vocab)
58
  if prompt[rand-1].startswith('art by') and artists_num < artist:
 
52
  vocab = len(prompt)
53
  generated = []
54
  artists_num = 0
55
+ with open('gen_prompt.txt', 'w') as f:
56
  while len(sorted(set(generated), key=lambda d: generated.index(d))) < num:
57
  rand = random.randint(0, vocab)
58
  if prompt[rand-1].startswith('art by') and artists_num < artist: