Browse Source

fix qwenvl text only

tags/v0.3.12-fix
haixuantao 6 months ago
parent
commit
e40b534d89
2 changed files with 5 additions and 1 deletions
  1. +4
    -0
      node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py
  2. +1
    -1
      node-hub/dora-qwen2-5-vl/pyproject.toml

+ 4
- 0
node-hub/dora-qwen2-5-vl/dora_qwen2_5_vl/main.py View File

@@ -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(


+ 1
- 1
node-hub/dora-qwen2-5-vl/pyproject.toml View File

@@ -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" },


Loading…
Cancel
Save