Spaces:
Runtime error
Runtime error
Commit ·
da674af
1
Parent(s): bb9061f
Update app.py
Browse files51 unmodified lines525354555556575851 unmodified lines vocab = len(prompt) generated = [] artists_num = 0 with open('gen_prompt.txt', 'wb') as f: with 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