Commit
•
ef1b186
1
Parent(s):
2187335
Upload processor
Browse files- processor.py +1 -1
processor.py
CHANGED
@@ -23,7 +23,7 @@ class GIAProcessor(GitProcessor):
|
|
23 |
if "text" in examples and not "images" in examples:
|
24 |
encoded_text = self.tokenizer(examples["text"], return_tensors=return_tensors, max_length=max_input_size,
|
25 |
truncation=False, padding="max_length")
|
26 |
-
encoding = self._cut_text(encoded_text,
|
27 |
elif "text" in examples and "images" in examples:
|
28 |
encoding = super().__call__(examples["text"], examples["images"], return_tensors, **kwargs)
|
29 |
|
|
|
23 |
if "text" in examples and not "images" in examples:
|
24 |
encoded_text = self.tokenizer(examples["text"], return_tensors=return_tensors, max_length=max_input_size,
|
25 |
truncation=False, padding="max_length")
|
26 |
+
encoding = self._cut_text(encoded_text, max_input_size)
|
27 |
elif "text" in examples and "images" in examples:
|
28 |
encoding = super().__call__(examples["text"], examples["images"], return_tensors, **kwargs)
|
29 |
|