kraxenia commited on
Commit
c312b90
·
verified ·
1 Parent(s): bfd8dab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,9 +37,9 @@ def api_call(image_base64_file):
37
  return res_image
38
 
39
 
40
- def predict(dict, prompt):
41
 
42
- init_image = Image.fromarray(dict['background'][:, :, :3], 'RGB') #dict['background'].convert("RGB")#.resize((1024, 1024))
43
 
44
  image_base64_file = convert_image_to_base64_string(init_image)
45
 
 
37
  return res_image
38
 
39
 
40
+ def predict(inputs):
41
 
42
+ init_image = Image.fromarray(inputs[0], 'RGB') #dict['background'].convert("RGB")#.resize((1024, 1024))
43
 
44
  image_base64_file = convert_image_to_base64_string(init_image)
45