Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -63,7 +63,7 @@ def generate(
|
|
63 |
if use_img2img:
|
64 |
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
|
66 |
-
response = requests.get(
|
67 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
68 |
init_image = init_image.resize((768, 512))
|
69 |
|
|
|
63 |
if use_img2img:
|
64 |
pipe = StableDiffusionImg2ImgPipeline.from_pretrained(model, torch_dtype=torch.float16)
|
65 |
|
66 |
+
response = requests.get(url)
|
67 |
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
68 |
init_image = init_image.resize((768, 512))
|
69 |
|