Spaces:
Runtime error
Runtime error
Commit
β’
bbf93bc
1
Parent(s):
310dfa4
preheat cache
Browse files
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
|