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