dvir-bria commited on
Commit
10a6c80
·
verified ·
1 Parent(s): 866c442

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -21,7 +21,8 @@ def convert_mask_image_to_base64_string(mask_image):
21
  def download_image(url):
22
  print(url)
23
  response = requests.get(url)
24
- return Image.open(BytesIO(response.content)).convert("RGB")
 
25
 
26
  def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):
27
 
 
21
  def download_image(url):
22
  print(url)
23
  response = requests.get(url)
24
+ bytes = BytesIO(response.content)
25
+ return Image.open(bytes).convert("RGB")
26
 
27
  def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):
28