Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)]
|