clefourrier HF staff commited on
Commit
ecefacb
1 Parent(s): 2014251

Fix datetime not serializable

Browse files
src/scripts/update_all_request_files.py CHANGED
@@ -18,13 +18,13 @@ def update_models(file_path, models):
18
  data['still_on_hub'] = False
19
  data['likes'] = 0
20
  data['downloads'] = 0
21
- data['created_at'] = None
22
  continue
23
 
24
  model_cfg = models[model_id]
25
  data['likes'] = model_cfg.likes
26
  data['downloads'] = model_cfg.downloads
27
- data['created_at'] = model_cfg.created_at
28
  #data['params'] = get_model_size(model_cfg, data['precision'])
29
  data['license'] = model_cfg.card_data.license if model_cfg.card_data is not None else ""
30
 
 
18
  data['still_on_hub'] = False
19
  data['likes'] = 0
20
  data['downloads'] = 0
21
+ data['created_at'] = ""
22
  continue
23
 
24
  model_cfg = models[model_id]
25
  data['likes'] = model_cfg.likes
26
  data['downloads'] = model_cfg.downloads
27
+ data['created_at'] = str(model_cfg.created_at)
28
  #data['params'] = get_model_size(model_cfg, data['precision'])
29
  data['license'] = model_cfg.card_data.license if model_cfg.card_data is not None else ""
30