From 8a2a2c8212c2331cbc46eceb93d30a477b39730f Mon Sep 17 00:00:00 2001 From: Franz Louis Cesista Date: Fri, 16 Aug 2024 17:35:31 +0800 Subject: [PATCH] fix linter nit --- .../models/instructblipvideo/processing_instructblipvideo.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/transformers/models/instructblipvideo/processing_instructblipvideo.py b/src/transformers/models/instructblipvideo/processing_instructblipvideo.py index b233db4a83710d..c38edc2048549f 100644 --- a/src/transformers/models/instructblipvideo/processing_instructblipvideo.py +++ b/src/transformers/models/instructblipvideo/processing_instructblipvideo.py @@ -150,7 +150,9 @@ def __call__( ) # cast to desired return tensors type after concatenating - text_encoding = BatchEncoding(text_encoding, tensor_type=output_kwargs["common_kwargs"].get("return_tensors")) + text_encoding = BatchEncoding( + text_encoding, tensor_type=output_kwargs["common_kwargs"].get("return_tensors") + ) encoding.update(text_encoding) qformer_text_encoding = self.qformer_tokenizer(text=text, **output_kwargs["text_kwargs"]) encoding["qformer_input_ids"] = qformer_text_encoding.pop("input_ids")