Skip to content

Commit

Permalink
Download .py files using download-model.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oobabooga committed Mar 19, 2023
1 parent be3edbf commit 7d11f1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion download-model.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def get_download_links_from_huggingface(model, branch):
is_pytorch = re.match("(pytorch|adapter)_model.*\.bin", fname)
is_safetensors = re.match("model.*\.safetensors", fname)
is_tokenizer = re.match("tokenizer.*\.model", fname)
is_text = re.match(".*\.(txt|json)", fname) or is_tokenizer
is_text = re.match(".*\.(txt|json|py)", fname) or is_tokenizer

if any((is_pytorch, is_safetensors, is_text, is_tokenizer)):
if is_text:
Expand Down

0 comments on commit 7d11f1f

Please sign in to comment.