Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,6 @@ from diffusers.models import AutoencoderKL
|
|
| 5 |
|
| 6 |
vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse")
|
| 7 |
pipeline = diffusers.DiffusionPipeline.from_pretrained("SG161222/Realistic_Vision_V5.1_noVAE", vae=vae).to("cuda")
|
| 8 |
-
pipeline.safety_checker = lambda images, **kwargs: (images, False)
|
| 9 |
|
| 10 |
def read_content(file_path: str) -> str:
|
| 11 |
"""read the content of target file
|
|
|
|
| 5 |
|
| 6 |
vae = AutoencoderKL.from_pretrained("stabilityai/sd-vae-ft-mse")
|
| 7 |
pipeline = diffusers.DiffusionPipeline.from_pretrained("SG161222/Realistic_Vision_V5.1_noVAE", vae=vae).to("cuda")
|
|
|
|
| 8 |
|
| 9 |
def read_content(file_path: str) -> str:
|
| 10 |
"""read the content of target file
|