davanstrien HF staff commited on
Commit
bbf93bc
β€’
1 Parent(s): 310dfa4

preheat cache

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -20,6 +20,8 @@ def get_models():
20
  def get_datasets():
21
  return list(iter(list_datasets(full=True, limit=LIMIT)))
22
 
 
 
23
 
24
  def check_for_arxiv_id(model):
25
  return [tag for tag in model.tags if "arxiv" in tag] if model.tags else False
 
20
  def get_datasets():
21
  return list(iter(list_datasets(full=True, limit=LIMIT)))
22
 
23
+ get_models() # warm up the cache
24
+ get_datasets() # warm up the cache
25
 
26
  def check_for_arxiv_id(model):
27
  return [tag for tag in model.tags if "arxiv" in tag] if model.tags else False