Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
| 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 |
|