We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f80c96a commit e4f0cb6Copy full SHA for e4f0cb6
notebooks/mllama-3.2/gradio_helper.py
@@ -27,6 +27,8 @@ def bot_streaming(message, history):
27
# message["files"][-1] is a Dict or just a string
28
if isinstance(files[-1], dict):
29
image = files[-1]["path"]
30
+ elif isinstance(files[-1], str):
31
+ image = files[-1]
32
else:
33
image = files[-1] if isinstance(files[-1], (list, tuple)) else files[-1].path
34
0 commit comments