Mention model_info.id instead of model_info.modelId (#32106)

This commit is contained in:
Lucain
2024-07-22 15:14:47 +02:00
committed by GitHub
parent 0fcfc5ccc9
commit f2a1e3ca68
4 changed files with 4 additions and 4 deletions

View File

@@ -105,7 +105,7 @@ from huggingface_hub import list_models
model_list = list_models()
org = "Helsinki-NLP"
model_ids = [x.modelId for x in model_list if x.modelId.startswith(org)]
model_ids = [x.id for x in model_list if x.id.startswith(org)]
suffix = [x.split("/")[1] for x in model_ids]
old_style_multi_models = [f"{org}/{s}" for s in suffix if s != s.lower()]
```