Skip to content

Commit

Permalink
handle (processor_class, None) returned by ModelPatterns
Browse files Browse the repository at this point in the history
  • Loading branch information
molbap committed Jul 2, 2024
1 parent 82486e5 commit 7f2c3f4
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 7f2c3f4

Please sign in to comment.