Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def generate(
|
|
66 |
if torch.cuda.is_available():
|
67 |
|
68 |
if not use_vae:
|
69 |
-
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16, safety_checker=
|
70 |
|
71 |
if use_vae:
|
72 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|
|
|
66 |
if torch.cuda.is_available():
|
67 |
|
68 |
if not use_vae:
|
69 |
+
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16, safety_checker=StableDiffusionSafetyChecker)
|
70 |
|
71 |
if use_vae:
|
72 |
vae = AutoencoderKL.from_pretrained(vaecall, torch_dtype=torch.float16)
|