weifeng-chen commited on
Commit
2278ab0
β€’
1 Parent(s): 8a3cc0d
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -16,8 +16,8 @@ def resize(w_val,l_val,img):
16
 
17
 
18
  def infer(prompt, guide, steps, width, height):
19
- images = pipe_text2img(prompt, guidance_scale=guide, num_inference_steps=steps, width=width, height=height)
20
- image = images[0]
21
  return image
22
 
23
  gr.Interface(fn=infer, inputs=
 
16
 
17
 
18
  def infer(prompt, guide, steps, width, height):
19
+ output = pipe_text2img(prompt, guidance_scale=guide, num_inference_steps=steps, width=width, height=height)
20
+ image = images.images[0]
21
  return image
22
 
23
  gr.Interface(fn=infer, inputs=