dvir-bria commited on
Commit
de0bf33
1 Parent(s): 49fade0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -20,7 +20,7 @@ def convert_mask_image_to_base64_string(mask_image):
20
 
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
 
 
20
 
21
  def download_image(url):
22
  print(url)
23
+ response = requests.get(url, stream=True)
24
  bytes = BytesIO(response.content)
25
  return Image.open(bytes).convert("RGB")
26