jepz commited on
Commit
70660bf
·
verified ·
1 Parent(s): c30bd4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,11 +11,11 @@ device = "cuda" if torch.cuda.is_available() else "cpu"
11
 
12
  if torch.cuda.is_available():
13
  torch.cuda.max_memory_allocated(device=device)
14
- pipe = DiffusionPipeline.from_pretrained("Envvi/Inkpunk-Diffusion", torch_dtype=torch.float16, variant="fp16", use_safetensors=True)
15
  pipe.enable_xformers_memory_efficient_attention()
16
  pipe = pipe.to(device)
17
  else:
18
- pipe = DiffusionPipeline.from_pretrained("Envvi/Inkpunk-Diffusion", use_safetensors=True)
19
  pipe = pipe.to(device)
20
 
21
  MAX_SEED = np.iinfo(np.int32).max
 
11
 
12
  if torch.cuda.is_available():
13
  torch.cuda.max_memory_allocated(device=device)
14
+ pipe = DiffusionPipeline.from_pretrained("Envvi/Inkpunk-Diffusion", torch_dtype=torch.float16, variant="fp16")
15
  pipe.enable_xformers_memory_efficient_attention()
16
  pipe = pipe.to(device)
17
  else:
18
+ pipe = DiffusionPipeline.from_pretrained("Envvi/Inkpunk-Diffusion")
19
  pipe = pipe.to(device)
20
 
21
  MAX_SEED = np.iinfo(np.int32).max