craftgamesnetwork commited on
Commit
086aec8
·
verified ·
1 Parent(s): a162452

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -4
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)