Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -485,7 +485,7 @@ def generate_image(request: Request, input_data: InputImage):
|
|
485 |
True, # bool in 'Randomize seed' Checkbox component
|
486 |
api_name="/run"
|
487 |
)
|
488 |
-
image_url = result
|
489 |
print(image_url)
|
490 |
with open(image_url, 'rb') as img_file:
|
491 |
img_binary = img_file.read()
|
|
|
485 |
True, # bool in 'Randomize seed' Checkbox component
|
486 |
api_name="/run"
|
487 |
)
|
488 |
+
image_url = result[0][0]['image']
|
489 |
print(image_url)
|
490 |
with open(image_url, 'rb') as img_file:
|
491 |
img_binary = img_file.read()
|