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