ydshieh HF staff commited on
Commit
f7f3e17
1 Parent(s): 83726ae

Upload processing_kosmos2.py

Browse files
Files changed (1) hide show
  1. processing_kosmos2.py +1 -1
processing_kosmos2.py CHANGED
@@ -59,7 +59,7 @@ class Kosmos2Processor(ProcessorMixin):
59
  """
60
  attributes = ["image_processor", "tokenizer"]
61
  image_processor_class = "CLIPImageProcessor"
62
- tokenizer_class = ("AutoTokenizer",)
63
 
64
  def __init__(self, image_processor, tokenizer):
65
  tokenizer.return_token_type_ids = False
 
59
  """
60
  attributes = ["image_processor", "tokenizer"]
61
  image_processor_class = "CLIPImageProcessor"
62
+ tokenizer_class = "AutoTokenizer"
63
 
64
  def __init__(self, image_processor, tokenizer):
65
  tokenizer.return_token_type_ids = False