Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,9 @@ def convert_mask_image_to_base64_string(mask_image):
|
|
21 |
def download_image(url):
|
22 |
print(url)
|
23 |
response = requests.get(url, stream=True)
|
24 |
-
|
25 |
-
|
|
|
26 |
|
27 |
def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):
|
28 |
|
|
|
21 |
def download_image(url):
|
22 |
print(url)
|
23 |
response = requests.get(url, stream=True)
|
24 |
+
print(len(response.content))
|
25 |
+
img_bytes = BytesIO(response.content)
|
26 |
+
return Image.open(img_bytes).convert("RGB")
|
27 |
|
28 |
def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):
|
29 |
|