You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When selecting input image, I have the files variable as follow.
files= ['/path/to/input/image.png']
The following code will check files[-1] which is in string data type and not list or tuple. Then it will return error due to the str object has no attribute path.
Expected behavior
The input image file with string data type from local directory should not fail.
Possible fix
Removing select last from files list fixed the issue for me. Sample as follow. Not sure about the last files with .path. What data type it is?
Describe the bug
When selecting input image, I have the
files
variable as follow.The following code will check
files[-1]
which is in string data type and not list or tuple. Then it will return error due to thestr
object has no attributepath
.openvino_notebooks/notebooks/mllama-3.2/gradio_helper.py
Line 31 in b393399
Expected behavior
The input image file with string data type from local directory should not fail.
Possible fix
Removing select last from
files
list fixed the issue for me. Sample as follow. Not sure about the lastfiles
with.path
. What data type it is?The text was updated successfully, but these errors were encountered: