소스 검색

Download .py files using download-model.py

oobabooga 2 년 전
부모
커밋
164e05daad
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      download-model.py

+ 1 - 1
download-model.py

@@ -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: