Explorar o código

Also download Markdown files

Florian Kusche %!s(int64=2) %!d(string=hai) anos
pai
achega
19174842b8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      download-model.py

+ 1 - 1
download-model.py

@@ -118,7 +118,7 @@ def get_download_links_from_huggingface(model, branch):
             is_safetensors = re.match("model.*\.safetensors", fname)
             is_pt = re.match(".*\.pt", fname)
             is_tokenizer = re.match("tokenizer.*\.model", fname)
-            is_text = re.match(".*\.(txt|json|py)", fname) or is_tokenizer
+            is_text = re.match(".*\.(txt|json|py|md)", fname) or is_tokenizer
 
             if any((is_pytorch, is_safetensors, is_pt, is_tokenizer, is_text)):
                 if is_text: