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