sunbv56 commited on
Commit
f35554d
·
verified ·
1 Parent(s): e7fca3b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
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)