Spaces:
Running
Running
Update app.py
Browse files
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 |
|