Spaces:
Runtime error
Runtime error
Commit
Β·
6bad7e3
1
Parent(s):
0f6c693
cache main lookup
Browse files
app.py
CHANGED
@@ -79,7 +79,7 @@ def group_collection_items(collection_slug: str):
|
|
79 |
items = collection.items
|
80 |
return groupby(get_collection_type, items)
|
81 |
|
82 |
-
|
83 |
def get_papers_for_collection(collection_slug: str):
|
84 |
dataset_to_arxiv_id = create_dataset_to_arxiv_id_dict()
|
85 |
models_to_arxiv_id = create_model_to_arxiv_id_dict()
|
|
|
79 |
items = collection.items
|
80 |
return groupby(get_collection_type, items)
|
81 |
|
82 |
+
@cached(cache=TTLCache(maxsize=1000, ttl=CACHE_TIME))
|
83 |
def get_papers_for_collection(collection_slug: str):
|
84 |
dataset_to_arxiv_id = create_dataset_to_arxiv_id_dict()
|
85 |
models_to_arxiv_id = create_model_to_arxiv_id_dict()
|