Spaces:
Running
Running
kovacsvi
commited on
Commit
·
10307a1
1
Parent(s):
bf07f99
delete every blob not just .bin files
Browse files
utils.py
CHANGED
@@ -120,7 +120,7 @@ def delete_unused_bin_files(model_id: str):
|
|
120 |
target_path = f"/data/models--poltextlab--{model_id}"
|
121 |
|
122 |
# delete .bin files in blobs/
|
123 |
-
blob_bins = glob.glob(f"{target_path}/blobs
|
124 |
|
125 |
# delete .bin files in snapshots/, except config.json
|
126 |
snapshot_bins = glob.glob(f"{target_path}/snapshots/**/*.bin", recursive=True)
|
|
|
120 |
target_path = f"/data/models--poltextlab--{model_id}"
|
121 |
|
122 |
# delete .bin files in blobs/
|
123 |
+
blob_bins = glob.glob(f"{target_path}/blobs/**/*", recursive=True)
|
124 |
|
125 |
# delete .bin files in snapshots/, except config.json
|
126 |
snapshot_bins = glob.glob(f"{target_path}/snapshots/**/*.bin", recursive=True)
|