dejinlee commited on
Commit
e6baa57
1 Parent(s): 81d446b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,8 +3,8 @@ from diffusers import StableDiffusionPipeline
3
 
4
  def draw(sets):
5
  pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-EN-v0.1")
6
- images = pipe(sets, guidance_scale=10).images[]
7
- return images[0],images[1],images[2],images[3],images[4]
8
 
9
- iface = gr.Interface(fn=draw, inputs="text", outputs=["image","image","image","image","image"],)
10
  iface.launch()
 
3
 
4
  def draw(sets):
5
  pipe = StableDiffusionPipeline.from_pretrained("IDEA-CCNL/Taiyi-Stable-Diffusion-1B-Chinese-EN-v0.1")
6
+ image = pipe(sets, guidance_scale=10).images[0]
7
+ return image
8
 
9
+ iface = gr.Interface(fn=draw, inputs="text", outputs="image")
10
  iface.launch()