rootglitch commited on
Commit
66f3168
·
1 Parent(s): e7b99fd

Handle result path

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -498,8 +498,8 @@ def generate_ai_bg(input_img, prompt):
498
  input_fg=handle_file(input_img),
499
  bg_source="None",
500
  prompt=prompt,
501
- image_width=896,
502
- image_height=1152,
503
  num_samples=1,
504
  seed=12345,
505
  steps=25,
@@ -514,7 +514,7 @@ def generate_ai_bg(input_img, prompt):
514
  )
515
  print(result)
516
 
517
- relight_img_path = result['images'][0]['url']
518
 
519
  response = requests.get(relight_img_path, stream=True)
520
 
 
498
  input_fg=handle_file(input_img),
499
  bg_source="None",
500
  prompt=prompt,
501
+ image_width=1024,
502
+ image_height=1024,
503
  num_samples=1,
504
  seed=12345,
505
  steps=25,
 
514
  )
515
  print(result)
516
 
517
+ relight_img_path = result[1]
518
 
519
  response = requests.get(relight_img_path, stream=True)
520