Tempuror commited on
Commit
aacdc51
·
1 Parent(s): 96dae07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -7,7 +7,8 @@ pipe = StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4",
7
  pipe.unet.load_attn_procs(model_path)
8
 
9
  def generate_poster(prompt):
10
- image = pipe(prompt, num_inference_steps=100, guidance_scale=50).images[0]
 
11
  return image
12
 
13
  interface = gr.Interface(fn=generate_poster, inputs="text", outputs="image", title="Poster Generator")
 
7
  pipe.unet.load_attn_procs(model_path)
8
 
9
  def generate_poster(prompt):
10
+ print("start generating image", prompt)
11
+ image = pipe(prompt, num_inference_steps=10, guidance_scale=50).images[0]
12
  return image
13
 
14
  interface = gr.Interface(fn=generate_poster, inputs="text", outputs="image", title="Poster Generator")