AhmyrAzlam commited on
Commit
b5f5dac
·
verified ·
1 Parent(s): a85242f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -10,7 +10,7 @@ import re
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
  dtype = torch.float16 if torch.cuda.is_available() else torch.float32
12
  model_id = "cagliostrolab/animagine-xl-3.0" # Top for colorful, detailed anime; full-color by default
13
- pipe = StableDiffusionXLPipeline.from_pretrained(model_id, torch_dtype=dtype, variant="fp16", use_safetensors=True)
14
  pipe = pipe.to(device)
15
  pipe.safety_checker = None # Disable for creative freedom (optional)
16
 
 
10
  device = "cuda" if torch.cuda.is_available() else "cpu"
11
  dtype = torch.float16 if torch.cuda.is_available() else torch.float32
12
  model_id = "cagliostrolab/animagine-xl-3.0" # Top for colorful, detailed anime; full-color by default
13
+ pipe = StableDiffusionXLPipeline.from_pretrained(model_id, torch_dtype=dtype, use_safetensors=True) # Removed variant="fp16" to fix error
14
  pipe = pipe.to(device)
15
  pipe.safety_checker = None # Disable for creative freedom (optional)
16