sangheeeee commited on
Commit
626c25d
·
verified ·
1 Parent(s): 24c40f9

Modify chat_template.jinja

Browse files
Files changed (1) hide show
  1. chat_template.jinja +2 -4
chat_template.jinja CHANGED
@@ -58,15 +58,13 @@
58
  {%- if ns_check.is_video %}
59
  {%- set video_id = 'video_%02d' % ns_vid.count %}
60
  {%- set ns_vid.count = ns_vid.count + 1 %}
61
- {%- set filename = media_url.split('/')[-1] %}
62
- {{- '<|mime_start|>{"id": "' + video_id + '", "type": "video/mp4", "filename": "' + filename + '"}<|mime_end|>\n' }}
63
  {{- '<|video_aux_start|>다음 중 video_duration은 비디오 길이 정보입니다. 참고하여 답변하세요. {"video_duration": "<|video_meta_duration|>"}<|video_aux_end|>\n'}}
64
  {{- '<|video_start|><|VIDEO_PAD|><|video_end|>\n'}}
65
  {%- else %}
66
  {%- set image_id = 'image_%02d' % ns_img.count %}
67
  {%- set ns_img.count = ns_img.count + 1 %}
68
- {%- set filename = media_url.split('/')[-1] %}
69
- {{- '<|mime_start|>{"id": "' + image_id + '", "type": "image/jpeg", "filename": "' + filename + '"}<|mime_end|>\n' }}
70
  {{- '<|image_start|><|IMAGE_PAD|><|image_end|>' }}
71
  {%- endif %}
72
  {%- elif content['type'] == 'text' %}
 
58
  {%- if ns_check.is_video %}
59
  {%- set video_id = 'video_%02d' % ns_vid.count %}
60
  {%- set ns_vid.count = ns_vid.count + 1 %}
61
+ {{- '<|mime_start|>{"id": "' + video_id + '", "type": "video/mp4", "filename": "video.mp4"}<|mime_end|>\n' }}
 
62
  {{- '<|video_aux_start|>다음 중 video_duration은 비디오 길이 정보입니다. 참고하여 답변하세요. {"video_duration": "<|video_meta_duration|>"}<|video_aux_end|>\n'}}
63
  {{- '<|video_start|><|VIDEO_PAD|><|video_end|>\n'}}
64
  {%- else %}
65
  {%- set image_id = 'image_%02d' % ns_img.count %}
66
  {%- set ns_img.count = ns_img.count + 1 %}
67
+ {{- '<|mime_start|>{"id": "' + image_id + '", "type": "image/jpeg", "filename": "image.jpg"}<|mime_end|>\n' }}
 
68
  {{- '<|image_start|><|IMAGE_PAD|><|image_end|>' }}
69
  {%- endif %}
70
  {%- elif content['type'] == 'text' %}