Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ pipe_text2img = LDMZhTextToImagePipeline.from_pretrained(model_id, use_auth_toke
|
|
11 |
pipe_text2img = pipe_text2img.to(device)
|
12 |
|
13 |
def infer_text2img(prompt, guide, steps):
|
14 |
-
output = pipe_text2img(prompt, guidance_scale=guide, num_inference_steps=steps, use_sr=
|
15 |
images = output.images[0]
|
16 |
return images
|
17 |
|
|
|
11 |
pipe_text2img = pipe_text2img.to(device)
|
12 |
|
13 |
def infer_text2img(prompt, guide, steps):
|
14 |
+
output = pipe_text2img(prompt, guidance_scale=guide, num_inference_steps=steps, use_sr=False)
|
15 |
images = output.images[0]
|
16 |
return images
|
17 |
|