Patch processing_phi4mm.py
Browse files- processing_phi4mm.py +4 -0
processing_phi4mm.py
CHANGED
@@ -608,6 +608,10 @@ class Phi4MMProcessor(ProcessorMixin):
|
|
608 |
@property
|
609 |
def chat_template(self):
|
610 |
return self.tokenizer.chat_template
|
|
|
|
|
|
|
|
|
611 |
|
612 |
def _convert_images_audios_text_to_inputs(
|
613 |
self, images, audios, text, padding=False, truncation=None, max_length=None, return_tensors=None
|
|
|
608 |
@property
|
609 |
def chat_template(self):
|
610 |
return self.tokenizer.chat_template
|
611 |
+
|
612 |
+
@chat_template.setter
|
613 |
+
def chat_template(self, value):
|
614 |
+
self.tokenizer.chat_template = value
|
615 |
|
616 |
def _convert_images_audios_text_to_inputs(
|
617 |
self, images, audios, text, padding=False, truncation=None, max_length=None, return_tensors=None
|