Spaces:
Build error
Build error
Update edit_app.py
Browse files- edit_app.py +1 -1
edit_app.py
CHANGED
|
@@ -8,7 +8,7 @@ from diffusers import StableDiffusionInstructPix2PixPipeline
|
|
| 8 |
model_id = "timbrooks/instruct-pix2pix"
|
| 9 |
|
| 10 |
def main():
|
| 11 |
-
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id,
|
| 12 |
|
| 13 |
def generate(
|
| 14 |
input_image: Image.Image,
|
|
|
|
| 8 |
model_id = "timbrooks/instruct-pix2pix"
|
| 9 |
|
| 10 |
def main():
|
| 11 |
+
pipe = StableDiffusionInstructPix2PixPipeline.from_pretrained(model_id, safety_checker=None).to("cpu")
|
| 12 |
|
| 13 |
def generate(
|
| 14 |
input_image: Image.Image,
|