ClementRomac HF staff commited on
Commit
6679055
1 Parent(s): b669b3c

Upload processor

Browse files
Files changed (1) hide show
  1. 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, 1024)
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, 1000)
27
  elif "text" in examples and "images" in examples:
28
  encoding = super().__call__(examples["text"], examples["images"], return_tensors, **kwargs)
29