Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -81,10 +81,6 @@ def generate(
|
|
81 |
|
82 |
if use_inpainting:
|
83 |
pipe = AutoPipelineForInpainting.from_pretrained(model, torch_dtype=torch.float16)
|
84 |
-
|
85 |
-
response = requests.get(url)
|
86 |
-
init_image = Image.open(BytesIO(response.content)).convert("RGB")
|
87 |
-
init_image = init_image.resize((width, height))
|
88 |
|
89 |
image_init = load_image(img_url)
|
90 |
mask_image = load_image(mask_url)
|
|
|
81 |
|
82 |
if use_inpainting:
|
83 |
pipe = AutoPipelineForInpainting.from_pretrained(model, torch_dtype=torch.float16)
|
|
|
|
|
|
|
|
|
84 |
|
85 |
image_init = load_image(img_url)
|
86 |
mask_image = load_image(mask_url)
|