Spaces:
Runtime error
Runtime error
Commit
·
d3ac2c1
1
Parent(s):
04d51d9
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,9 +28,6 @@ def generate(starting_text):
|
|
| 28 |
|
| 29 |
if response_end != "":
|
| 30 |
return response_end
|
| 31 |
-
examples = []
|
| 32 |
-
for x in range(8):
|
| 33 |
-
examples.append(line[random.randrange(0, len(line))].replace("\n", "").capitalize())
|
| 34 |
|
| 35 |
|
| 36 |
txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Enter a basic idea")
|
|
@@ -44,7 +41,6 @@ description = 'Welcome to the MagicPrompt demo for Stable Diffusion! Ready to se
|
|
| 44 |
grad.Interface(fn=generate,
|
| 45 |
inputs=txt,
|
| 46 |
outputs=out,
|
| 47 |
-
examples=examples,
|
| 48 |
title=title,
|
| 49 |
description=description,
|
| 50 |
article='',
|
|
|
|
| 28 |
|
| 29 |
if response_end != "":
|
| 30 |
return response_end
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
|
| 33 |
txt = grad.Textbox(lines=1, label="Initial Text", placeholder="Enter a basic idea")
|
|
|
|
| 41 |
grad.Interface(fn=generate,
|
| 42 |
inputs=txt,
|
| 43 |
outputs=out,
|
|
|
|
| 44 |
title=title,
|
| 45 |
description=description,
|
| 46 |
article='',
|