Skip to content

Commit

Permalink
Update download-model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
sashaok123 authored Mar 21, 2023
1 parent cfa2d90 commit f555278
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/download-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_download_links(url):
download_links = []
for link in soup.find_all("a"):
href = link.get("href")
if href and any(href.endswith(ext) for ext in (".ckpt", ".safetensors", ".yaml", ".bin", ".pt")):
if href and any(href.endswith(ext) for ext in (".ckpt", ".safetensors", ".yaml", ".bin", ".pt", ".pth", ".json")):
download_links.append("https://huggingface.co" + href.replace("/blob", "/resolve"))

return download_links
Expand Down

0 comments on commit f555278

Please sign in to comment.