Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesThe image token for granite vision is `<image>` not `[Image]`
app.py
CHANGED
@@ -14,7 +14,7 @@ def get_text_from_content(content):
|
|
14 |
if item["type"] == "text":
|
15 |
texts.append(item["text"])
|
16 |
elif item["type"] == "image":
|
17 |
-
texts.append("
|
18 |
return " ".join(texts)
|
19 |
|
20 |
@spaces.GPU
|
|
|
14 |
if item["type"] == "text":
|
15 |
texts.append(item["text"])
|
16 |
elif item["type"] == "image":
|
17 |
+
texts.append("<image>")
|
18 |
return " ".join(texts)
|
19 |
|
20 |
@spaces.GPU
|