yonikremer commited on
Commit
927596e
1 Parent(s): 91ce433

bugfix: NameError: name '__path__' is not defined

Browse files
Files changed (1) hide show
  1. download_repo.py +1 -1
download_repo.py CHANGED
@@ -19,7 +19,7 @@ def download_repository(name: str) -> None:
19
  """Downloads a repository from the Hugging Face Hub."""
20
  number_of_seconds_in_a_day: int = 86_400
21
  change_default_timeout(number_of_seconds_in_a_day)
22
- curr_folder: str = os.path.dirname(__path__)
23
  snapshot_download(
24
  cache_dir=os.path.join(curr_folder, "huggingface", "models"),
25
  repo_id=name,
 
19
  """Downloads a repository from the Hugging Face Hub."""
20
  number_of_seconds_in_a_day: int = 86_400
21
  change_default_timeout(number_of_seconds_in_a_day)
22
+ curr_folder: str = os.path.dirname(__file__)
23
  snapshot_download(
24
  cache_dir=os.path.join(curr_folder, "huggingface", "models"),
25
  repo_id=name,