Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ pipe = StableDiffusionPipeline.from_pretrained(model_id, torch_dtype=torch.float
|
|
9 |
def infer(prompt):
|
10 |
|
11 |
prompt = "a photo of an astronaut riding a horse on mars"
|
12 |
-
image = pipe(prompt).images[0]
|
13 |
|
14 |
return image
|
15 |
|
|
|
9 |
def infer(prompt):
|
10 |
|
11 |
prompt = "a photo of an astronaut riding a horse on mars"
|
12 |
+
image = pipe(prompt=prompt, guidance_scale=10.0, num_inference_steps=12, width=256, height=256).images[0]
|
13 |
|
14 |
return image
|
15 |
|