Skip to content

Commit

Permalink
handle (processor_class, None) returned by ModelPatterns (#31753)
Browse files Browse the repository at this point in the history
  • Loading branch information
molbap authored Jul 3, 2024
1 parent 0fd885b commit c1fe125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/commands/add_new_model_like.py
Original file line number Diff line number Diff line change
Expand Up @@ -1628,7 +1628,7 @@ def get_user_input():
)

old_processing_classes = [
c
c if not isinstance(c, tuple) else c[0]
for c in [old_image_processor_class, old_feature_extractor_class, old_tokenizer_class, old_processor_class]
if c is not None
]
Expand Down

0 comments on commit c1fe125

Please sign in to comment.