Update app.py
Browse files
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
|
| 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:
|