Spaces:
Sleeping
Sleeping
Arjun Singh
commited on
Commit
·
ff7fad1
1
Parent(s):
18bd6bb
second output
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ def call_api_and_generate_image(negative_prompt, positive_prompt,seed, source_im
|
|
| 38 |
)
|
| 39 |
|
| 40 |
result = resp.json()
|
| 41 |
-
base64_initial = result['result'][
|
| 42 |
image_data = base64.b64decode(base64_initial)
|
| 43 |
image_output = Image.open(io.BytesIO(image_data))
|
| 44 |
|
|
|
|
| 38 |
)
|
| 39 |
|
| 40 |
result = resp.json()
|
| 41 |
+
base64_initial = result['result'][1]['data']
|
| 42 |
image_data = base64.b64decode(base64_initial)
|
| 43 |
image_output = Image.open(io.BytesIO(image_data))
|
| 44 |
|