Ely-testa commited on
Commit
0a2934f
·
verified ·
1 Parent(s): 9946f12

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ def process_image(img, generate_image=True):
135
  )
136
 
137
  # Get the image from the result
138
- image_base64 = result.images[0]
139
  image_bytes = base64.b64decode(image_base64)
140
  generated_image = Image.open(io.BytesIO(image_bytes))
141
  else:
 
135
  )
136
 
137
  # Get the image from the result
138
+ image_base64 = result["images"][0]
139
  image_bytes = base64.b64decode(image_base64)
140
  generated_image = Image.open(io.BytesIO(image_bytes))
141
  else: