From e40b534d89cf5db5431fdceb7b29ff60425f6d8b Mon Sep 17 00:00:00 2001 From: haixuantao Date: Thu, 3 Jul 2025 18:10:43 +0200 Subject: [PATCH] fix qwenvl text only --- node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py | 4 ++++ node-hub/dora-qwen2-5-vl/pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py b/node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py index 898b444d..7592bdad 100644 --- a/node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py +++ b/node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py @@ -73,6 +73,10 @@ def generate( messages = [] + # If the texts is string, convert it to a list + if isinstance(texts, str): + texts = [texts] + for text in texts: if text.startswith("<|system|>\n"): messages.append( diff --git a/node-hub/dora-qwen2-5-vl/pyproject.toml b/node-hub/dora-qwen2-5-vl/pyproject.toml index d415501a..95b9a5a3 100644 --- a/node-hub/dora-qwen2-5-vl/pyproject.toml +++ b/node-hub/dora-qwen2-5-vl/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "dora-qwen2-5-vl" -version = "0.3.12" +version = "0.3.12.post1" authors = [ { name = "Haixuan Xavier Tao", email = "tao.xavier@outlook.com" }, { name = "Enzo Le Van", email = "dev@enzo-le-van.fr" },