Update app.py
Browse files18 unmodified lines19202122232425262728293018 unmodified linesreturn f",{image_base64_string}" # for some reason the funciton which downloads image from base64 expects prefix of "," which is redundant in the urldef download_image(url):print(url)response = requests.get(url, stream=True)print(len(response.content))print(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):18 unmodified lines192021222324252618 unmodified linesreturn f",{image_base64_string}" # for some reason the funciton which downloads image from base64 expects prefix of "," which is redundant in the urldef download_image(url):response = requests.get(url)img_bytes = BytesIO(response.content)return Image.open(img_bytes).convert("RGB")def gen_fill_api_call(image_base64_file, mask_base64_file, prompt):
app.py+1-5