fix huggingface download with tokens (#116)

This commit is contained in:
boeto
2025-02-03 20:30:07 +08:00
committed by GitHub
parent 921dabc057
commit 130c75f5bf
3 changed files with 13 additions and 8 deletions

View File

@@ -225,7 +225,7 @@ class HuggingfaceModelSearcher(ModelSearcher):
"pathIndex": 0,
"description": "\n".join(description_parts),
"metadata": {},
"downloadPlatform": "",
"downloadPlatform": "huggingface",
"downloadUrl": f"https://huggingface.co/{model_id}/resolve/main/{filename}?download=true",
}
models.append(model)