Spaces:
Runtime error
Runtime error
Axolotlily
commited on
Commit
•
affed7f
1
Parent(s):
5a2144b
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ ldm = DiffusionPipeline.from_pretrained("CompVis/ldm-text2im-large-256")
|
|
5 |
|
6 |
def inference(prompt):
|
7 |
images = ldm([prompt],
|
8 |
-
num_inference_steps=
|
9 |
eta=0.3,
|
10 |
guidance_scale=6)["sample"]
|
11 |
return images
|
12 |
-
|
13 |
gr.Interface(inference, "text", gr.Gallery()).launch()
|
|
|
5 |
|
6 |
def inference(prompt):
|
7 |
images = ldm([prompt],
|
8 |
+
num_inference_steps=15,
|
9 |
eta=0.3,
|
10 |
guidance_scale=6)["sample"]
|
11 |
return images
|
12 |
+
|
13 |
gr.Interface(inference, "text", gr.Gallery()).launch()
|