Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def model_inference(
|
|
26 |
if len(input_dict["files"]) > 1:
|
27 |
images = [Image.open(image["path"]).convert("RGB") for image in input_dict["files"]]
|
28 |
elif len(input_dict["files"]) == 1:
|
29 |
-
images = [Image.open(input_dict["files"]["path"]).convert("RGB")]
|
30 |
|
31 |
|
32 |
if text == "" and not images:
|
|
|
26 |
if len(input_dict["files"]) > 1:
|
27 |
images = [Image.open(image["path"]).convert("RGB") for image in input_dict["files"]]
|
28 |
elif len(input_dict["files"]) == 1:
|
29 |
+
images = [Image.open(input_dict["files"][0]["path"]).convert("RGB")]
|
30 |
|
31 |
|
32 |
if text == "" and not images:
|