Skip to content

Commit 278a957

Browse files
authored
Update push_to_hf_hub.py
library_tag -> correct library_name for push to hub readme
1 parent d7a5a95 commit 278a957

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/open_clip/push_to_hf_hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def push_pretrained_to_hf_hub(
163163
def generate_readme(model_card: dict, model_name: str):
164164
readme_text = "---\n"
165165
readme_text += "tags:\n- zero-shot-image-classification\n- clip\n"
166-
readme_text += "library_tag: open_clip\n"
166+
readme_text += "library_name: open_clip\n"
167167
readme_text += f"license: {model_card.get('license', 'mit')}\n"
168168
if 'details' in model_card and 'Dataset' in model_card['details']:
169169
readme_text += 'datasets:\n'

0 commit comments

Comments
 (0)