fffiloni commited on
Commit
d201666
1 Parent(s): 11b93fe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ def infer(prompt, init_image):
22
  init_image = Image.open(init_image).convert("RGB")
23
  init_image = init_image.resize((128, 128))
24
 
25
- with torch.autocast():
26
  res = pipe.train(
27
  prompt,
28
  init_image,
 
22
  init_image = Image.open(init_image).convert("RGB")
23
  init_image = init_image.resize((128, 128))
24
 
25
+ with torch.autocast('cuda'):
26
  res = pipe.train(
27
  prompt,
28
  init_image,