fbnnb commited on
Commit
cf50d78
1 Parent(s): 2c6dff3

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -155,7 +155,7 @@ def get_image(image, sketch, prompt, steps=50, cfg_scale=7.5, eta=1.0, fs=3, see
155
 
156
  # text cond
157
  transposed = False
158
- with torch.no_grad(), torch.cuda.amp.autocast(torch.float16):
159
  text_emb = model.get_learned_conditioning([prompt])
160
  print("before control")
161
  #control cond
 
155
 
156
  # text cond
157
  transposed = False
158
+ with torch.no_grad(), torch.cuda.amp.autocast(dtype=torch.float16):
159
  text_emb = model.get_learned_conditioning([prompt])
160
  print("before control")
161
  #control cond