Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -59,8 +59,7 @@ def generate(
|
|
59 |
|
60 |
if not use_vae:
|
61 |
pipe = StableDiffusionImg2ImgPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
|
62 |
-
|
63 |
-
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
64 |
init_image = init_image.resize((768, 512))
|
65 |
|
66 |
if use_vae:
|
|
|
59 |
|
60 |
if not use_vae:
|
61 |
pipe = StableDiffusionImg2ImgPipeline.from_pretrained("runwayml/stable-diffusion-v1-5", torch_dtype=torch.float16)
|
62 |
+
init_image = Image.open(requests.get("https://raw.githubusercontent.com/CompVis/stable-diffusion/main/assets/stable-samples/img2img/sketch-mountains-input.jpg")).convert("RGB")
|
|
|
63 |
init_image = init_image.resize((768, 512))
|
64 |
|
65 |
if use_vae:
|