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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -116,11 +116,11 @@ def bergamot(input_text: str = Query(description="Input strings"), sl: str = 'de
116
  subfolder = f"{sl}{tl}"
117
  # List all files in the repo
118
  all_files = list_repo_files(repo_id, repo_type='model')
119
- print(len(all_files), 'installed_pairs', installed_pairs))
120
  for branch in branches:
121
  branch_files = [f for f in all_files if f.startswith(branch)]
122
  model_files = [f for f in branch_files if f.startswith(model_name)]
123
- print('branch_files', 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)
 
116
  subfolder = f"{sl}{tl}"
117
  # List all files in the repo
118
  all_files = list_repo_files(repo_id, repo_type='model')
119
+ print(len(all_files), 'installed_pairs', installed_pairs)
120
  for branch in branches:
121
  branch_files = [f for f in all_files if f.startswith(branch)]
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)