TiberiuCristianLeon commited on
Commit
d90fe27
·
verified ·
1 Parent(s): 67b893a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -122,7 +122,7 @@ def bergamot(input_text: str = Query(description="Input strings"), sl: str = 'de
122
  model_files = [f for f in branch_files if f.startswith(model_name)]
123
  print('branch_files', len(branch_files), 'model_files', model_files)
124
  for file_path in model_files:
125
- if subfolder not in file_path:
126
  local_path = hf_hub_download(repo_id=repo_id, filename=file_path)
127
  print(f"Downloaded to: {local_path}")
128
  installed_pairs.add(subfolder)
 
122
  model_files = [f for f in branch_files if f.startswith(model_name)]
123
  print('branch_files', len(branch_files), 'model_files', model_files)
124
  for file_path in model_files:
125
+ if subfolder not in installed_pairs:
126
  local_path = hf_hub_download(repo_id=repo_id, filename=file_path)
127
  print(f"Downloaded to: {local_path}")
128
  installed_pairs.add(subfolder)