Spaces:
Runtime error
Runtime error
Commit
·
76e65ba
1
Parent(s):
1796e8a
Update app.py
Browse files
app.py
CHANGED
@@ -26,10 +26,11 @@ pipe = StableDiffusionPipeline.from_pretrained(model_id,torch_dtype=torch.float1
|
|
26 |
|
27 |
|
28 |
def infer(prompt,samples):
|
|
|
29 |
with context(device):
|
30 |
-
images = pipe(samples*[prompt], guidance_scale=7.5).
|
31 |
-
|
32 |
-
|
33 |
|
34 |
|
35 |
demo = gr.Blocks()
|
|
|
26 |
|
27 |
|
28 |
def infer(prompt,samples):
|
29 |
+
all_images = []
|
30 |
with context(device):
|
31 |
+
images = pipe(samples*[prompt],num_inference_steps=50, guidance_scale=7.5, height=400, width=400).sample
|
32 |
+
all_images.extend(images)
|
33 |
+
return all_images
|
34 |
|
35 |
|
36 |
demo = gr.Blocks()
|