Skip to content

Commit a755745

Browse files
authored
PaliGemma - fix processor with no input text (#30916)
Update processing_paligemma.py
1 parent d502bd6 commit a755745

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transformers/models/paligemma/processing_paligemma.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ def __call__(
177177
logger.warning_once(
178178
"You are using PaliGemma without a text prefix. It will perform as a picture-captioning model."
179179
)
180+
text = ""
180181

181182
if isinstance(text, List) and isinstance(images, List):
182183
if len(images) < len(text):

0 commit comments

Comments
 (0)