MatteoScript commited on
Commit
800d2a0
·
verified ·
1 Parent(s): 32aa507

Update main.py

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