TiberiuCristianLeon commited on
Commit
6168b17
·
verified ·
1 Parent(s): 7794bc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -108,7 +108,7 @@ class Bergamot:
108
  model_files = [f.split(f'{self.model_name}/')[1] for f in fullmodel_files]
109
  print('branch_files', len(branch_files), 'model_files', model_files)
110
  for file_path in model_files:
111
- if self.localfolder not in installed_pairs:
112
  # local_files_only (bool, optional, defaults to False) — If True, avoid downloading the file and return the path to the local cached file if it exists.
113
  # dry_run (bool, optional, defaults to False) — If True, perform a dry run without actually downloading the file. Returns a DryRunFileInfo object containing information about what would be downloaded.
114
  local_path = hf_hub_download(repo_id=self.repo_id, subfolder=self.model_name, filename=file_path, local_dir=self.subfolder)
 
108
  model_files = [f.split(f'{self.model_name}/')[1] for f in fullmodel_files]
109
  print('branch_files', len(branch_files), 'model_files', model_files)
110
  for file_path in model_files:
111
+ if self.localfolder not in self.installed_pairs:
112
  # local_files_only (bool, optional, defaults to False) — If True, avoid downloading the file and return the path to the local cached file if it exists.
113
  # dry_run (bool, optional, defaults to False) — If True, perform a dry run without actually downloading the file. Returns a DryRunFileInfo object containing information about what would be downloaded.
114
  local_path = hf_hub_download(repo_id=self.repo_id, subfolder=self.model_name, filename=file_path, local_dir=self.subfolder)