Update gradio_app.py
Browse files- 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
|