chywang commited on
Commit
5fc1c76
1 Parent(s): bee80e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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=False)
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=True)
15
  images = output.images[0]
16
  return images
17