fffiloni commited on
Commit
af9458b
·
verified ·
1 Parent(s): 8efb3e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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