Skip to content

Commit

Permalink
more logic
Browse files Browse the repository at this point in the history
  • Loading branch information
younesbelkada committed Jan 15, 2024
1 parent 1e3fc1e commit 59738c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -3583,7 +3583,7 @@ def create_model_card(

# Append existing tags in `tags`
existing_tags = ModelCard.load(model_card_filepath).data.tags
if tags is not None:
if tags is not None and existing_tags is not None:
if isinstance(tags, str):
tags = [tags]
for tag in existing_tags:
Expand Down

0 comments on commit 59738c6

Please sign in to comment.