x2XcarleX2x commited on
Commit
051c3d3
·
verified ·
1 Parent(s): 928a1a1

Update download_models.py

Browse files
Files changed (1) hide show
  1. download_models.py +2 -2
download_models.py CHANGED
@@ -5,7 +5,7 @@ import logging
5
  from huggingface_hub import snapshot_download
6
 
7
  # Configuração do log para ser claro e informativo
8
- logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - [%(name)s] - %(message)s')
9
  logger = logging.getLogger("MODEL_LOGISTICS")
10
 
11
  def download_repo_snapshot(repo_id, local_dir, desc, allow_patterns=None):
@@ -26,7 +26,7 @@ def download_repo_snapshot(repo_id, local_dir, desc, allow_patterns=None):
26
  snapshot_download(
27
  repo_id=repo_id,
28
  local_dir=local_dir,
29
- local_dir_use_symlinks=False,
30
  resume_download=True,
31
  allow_patterns=allow_patterns,
32
  ignore_patterns=["*.md", "*.txt", "*.gitattributes"], # Ignora arquivos desnecessários
 
5
  from huggingface_hub import snapshot_download
6
 
7
  # Configuração do log para ser claro e informativo
8
+ logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - [%(name)s] - %(message)s')
9
  logger = logging.getLogger("MODEL_LOGISTICS")
10
 
11
  def download_repo_snapshot(repo_id, local_dir, desc, allow_patterns=None):
 
26
  snapshot_download(
27
  repo_id=repo_id,
28
  local_dir=local_dir,
29
+ #local_dir_use_symlinks=False,
30
  resume_download=True,
31
  allow_patterns=allow_patterns,
32
  ignore_patterns=["*.md", "*.txt", "*.gitattributes"], # Ignora arquivos desnecessários