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

Handle result path again

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -516,9 +516,10 @@ def generate_ai_bg(input_img, prompt):
516
 
517
  relight_img_path = result[1]
518
 
519
- response = requests.get(relight_img_path, stream=True)
 
520
 
521
- relight_img = Image.open(BytesIO(response.content)).convert("RGBA")
522
 
523
  return relight_img
524
 
 
516
 
517
  relight_img_path = result[1]
518
 
519
+ # response = requests.get(relight_img_path, stream=True)
520
+ relight_img = Image.open(relight_img_path).convert("RGBA")
521
 
522
+ # relight_img = Image.open(BytesIO(response.content)).convert("RGBA")
523
 
524
  return relight_img
525