merve HF staff commited on
Commit
cdc01a3
·
verified ·
1 Parent(s): b330b2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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: