Update tokenization_qwen.py
Browse files- tokenization_qwen.py +1 -1
tokenization_qwen.py
CHANGED
@@ -394,7 +394,7 @@ class QWenTokenizer(PreTrainedTokenizer):
|
|
394 |
for ele in list_format:
|
395 |
if 'image' in ele:
|
396 |
num_images += 1
|
397 |
-
text += f'Picture {num_images}:'
|
398 |
text += self.image_start_tag + ele['image'] + self.image_end_tag
|
399 |
text += '\n'
|
400 |
elif 'text' in ele:
|
|
|
394 |
for ele in list_format:
|
395 |
if 'image' in ele:
|
396 |
num_images += 1
|
397 |
+
text += f'Picture {num_images}: '
|
398 |
text += self.image_start_tag + ele['image'] + self.image_end_tag
|
399 |
text += '\n'
|
400 |
elif 'text' in ele:
|