multimodalart HF staff commited on
Commit
c0391de
1 Parent(s): 3ad34f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -147,10 +147,11 @@ def checkbox_block():
147
  return checkbox
148
 
149
  def infer(text):
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"]):
 
147
  return checkbox
148
 
149
  def infer(text):
150
+ with autocast("cuda"):
151
+ images_list = pipe(
152
+ [text]*2,
153
+ num_inference_steps=50,
154
+ guidance_scale=7.5
155
  )
156
  output_images = []
157
  for i, image in enumerate(images_list["sample"]):