Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,9 +37,9 @@ def api_call(image_base64_file):
|
|
37 |
return res_image
|
38 |
|
39 |
|
40 |
-
def predict(
|
41 |
|
42 |
-
init_image = Image.fromarray(
|
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 |
|