Commit
·
f069c5b
1
Parent(s):
4bbdf5d
Update app.py
Browse files
app.py
CHANGED
@@ -19,6 +19,7 @@ def promptgen(choice, num):
|
|
19 |
while len(sorted(set(generated), key=lambda d: generated.index(d))) < num:
|
20 |
rand = random.randint(0, vocab)
|
21 |
generated.append(prompt[rand-1])
|
|
|
22 |
return ' '.join(sorted(set(generated), key=lambda d: generated.index(d)))
|
23 |
|
24 |
demo = gr.Blocks()
|
|
|
19 |
while len(sorted(set(generated), key=lambda d: generated.index(d))) < num:
|
20 |
rand = random.randint(0, vocab)
|
21 |
generated.append(prompt[rand-1])
|
22 |
+
print(' '.join(sorted(set(generated), key=lambda d: generated.index(d))))
|
23 |
return ' '.join(sorted(set(generated), key=lambda d: generated.index(d)))
|
24 |
|
25 |
demo = gr.Blocks()
|