Spaces:
Starting
on
CPU Upgrade
Starting
on
CPU Upgrade
Clémentine
commited on
Commit
•
5ad4694
1
Parent(s):
6c60c29
update script for deleted models' dynamic info
Browse files
src/scripts/update_all_request_files.py
CHANGED
@@ -15,6 +15,8 @@ def update_models(file_path, models):
|
|
15 |
model_infos = json.load(f)
|
16 |
for model_id, data in model_infos.items():
|
17 |
if model_id not in models:
|
|
|
|
|
18 |
continue
|
19 |
|
20 |
model_cfg = models[model_id]
|
|
|
15 |
model_infos = json.load(f)
|
16 |
for model_id, data in model_infos.items():
|
17 |
if model_id not in models:
|
18 |
+
data['still_on_hub'] = False
|
19 |
+
data['likes'] = 0
|
20 |
continue
|
21 |
|
22 |
model_cfg = models[model_id]
|