multimodalart HF staff commited on
Commit
f69e498
1 Parent(s): e926728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -146,12 +146,12 @@ def checkbox_block():
146
  return checkbox
147
 
148
  def infer(text):
149
- #with autocast("cuda"):
150
- images_list = pipe(
151
- [text]*2,
152
- num_inference_steps=50,
153
- guidance_scale=7.5
154
- )
155
  output_images = []
156
  for i, image in enumerate(images_list["sample"]):
157
  output_images.append(image)
 
146
  return checkbox
147
 
148
  def infer(text):
149
+ with autocast("cuda"):
150
+ images_list = pipe(
151
+ [text]*2,
152
+ num_inference_steps=50,
153
+ guidance_scale=7.5
154
+ )
155
  output_images = []
156
  for i, image in enumerate(images_list["sample"]):
157
  output_images.append(image)