mirror of
https://www.modelscope.cn/PaddlePaddle/PaddleOCR-VL.git
synced 2026-07-16 13:42:55 +08:00
Update README.md (batch 1/1)
This commit is contained in:
@ -7,16 +7,13 @@
|
||||
{%- if not eos_token is defined -%}
|
||||
{%- set eos_token = "</s>" -%}
|
||||
{%- endif -%}
|
||||
{%- if not image_token is defined -%}
|
||||
{%- set image_token = "<|IMAGE_START|><|IMAGE_PLACEHOLDER|><|IMAGE_END|>" -%}
|
||||
{%- endif -%}
|
||||
{{- cls_token -}}
|
||||
{%- for message in messages -%}
|
||||
{%- if message["role"] == "user" -%}
|
||||
{{- "User: " -}}
|
||||
{%- for content in message["content"] -%}
|
||||
{%- if content["type"] == "image" -%}
|
||||
{{ image_token }}
|
||||
{{ "<|IMAGE_START|><|IMAGE_PLACEHOLDER|><|IMAGE_END|>" }}
|
||||
{%- endif -%}
|
||||
{%- endfor -%}
|
||||
{%- for content in message["content"] -%}
|
||||
|
||||
Reference in New Issue
Block a user