mokady commited on
Commit
7e0218d
1 Parent(s): 6bcaa1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -76,8 +76,8 @@ def predict(dict, prompt="", negative_prompt="", guidance_scale=5, steps=30, str
76
  negative_prompt = None
77
 
78
 
79
- init_image = dict["image"].convert("RGB")#.resize((1024, 1024))
80
- mask = dict["mask"].convert("RGB")#.resize((1024, 1024))
81
 
82
  w,h = get_size(init_image)
83
 
 
76
  negative_prompt = None
77
 
78
 
79
+ init_image = Image.fromarray(dict['background'][:, :, :3], 'RGB') #dict['background'].convert("RGB")#.resize((1024, 1024))
80
+ mask = Image.fromarray(dict['layers'][0][:,:,3], 'L') #dict['layers'].convert("RGB")#.resize((1024, 1024))
81
 
82
  w,h = get_size(init_image)
83