Spaces:
Runtime error
Runtime error
Commit ·
da674af
1
Parent(s): bb9061f
Update app.py
Browse files51 unmodified lines5253545556575851 unmodified linesvocab = len(prompt)generated = []artists_num = 0with open('gen_prompt.txt', 'wb') as f:while len(sorted(set(generated), key=lambda d: generated.index(d))) < num:rand = random.randint(0, vocab)if prompt[rand-1].startswith('art by') and artists_num < artist:51 unmodified lines5253545556575851 unmodified linesvocab = len(prompt)generated = []artists_num = 0with open('gen_prompt.txt', 'w') as f:while len(sorted(set(generated), key=lambda d: generated.index(d))) < num:rand = random.randint(0, vocab)if prompt[rand-1].startswith('art by') and artists_num < artist:
app.py+1-1