Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,7 @@ async def generate_image(image_bytes_list, text_input, max_retries=5, retry_dela
|
|
65 |
|
66 |
images = []
|
67 |
for part in response.candidates[0].content.parts:
|
68 |
-
if part.inline_data is not
|
69 |
-
None:
|
70 |
try:
|
71 |
img = Image.open(BytesIO(part.inline_data.data))
|
72 |
images.append(img)
|
|
|
65 |
|
66 |
images = []
|
67 |
for part in response.candidates[0].content.parts:
|
68 |
+
if part.inline_data is not None:
|
|
|
69 |
try:
|
70 |
img = Image.open(BytesIO(part.inline_data.data))
|
71 |
images.append(img)
|