TiberiuCristianLeon commited on
Commit
43e522d
·
verified ·
1 Parent(s): 0734240

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -88,6 +88,7 @@ def bergamot(input_text: list[str] = Query(description="Input list of strings"),
88
  subfolder = f"{sl}{tl}"
89
  # List all files in the repo
90
  all_files = list_repo_files(repo_id, repo_type='model')
 
91
  for branch in branches:
92
  branch_files = [f for f in all_files if f.startswith(branch)]
93
  model_files = [f for f in branch_files if f.startswith(model_name)]
 
88
  subfolder = f"{sl}{tl}"
89
  # List all files in the repo
90
  all_files = list_repo_files(repo_id, repo_type='model')
91
+ print(all_files, len(all_files))
92
  for branch in branches:
93
  branch_files = [f for f in all_files if f.startswith(branch)]
94
  model_files = [f for f in branch_files if f.startswith(model_name)]