Update app.py
Browse files22 unmodified lines2324252627287 unmodified lines3637383940414222 unmodified linesresponse = requests.get(url, stream=True)print(len(response.content))img_bytes = BytesIO(response.content)return Image.open(img_bytes).convert("RGB")def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):7 unmodified lines}response = requests.post(url, json=payload, headers=auth_headers)response = response.json()print(response)res_image = download_image(response["urls"][0])return res_image22 unmodified lines232425262728297 unmodified lines37383940414222 unmodified linesresponse = requests.get(url, stream=True)print(len(response.content))img_bytes = BytesIO(response.content)print(img_bytes)return Image.open(img_bytes).convert("RGB")def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):7 unmodified lines}response = requests.post(url, json=payload, headers=auth_headers)response = response.json()res_image = download_image(response["urls"][0])return res_image
app.py+1-1