Spaces:
Sleeping
Sleeping
Commit
•
3988b82
1
Parent(s):
faf676d
cache dicts only
Browse files
app.py
CHANGED
@@ -15,7 +15,6 @@ client = rg.Argilla(
|
|
15 |
cache = TTLCache(maxsize=100, ttl=timedelta(minutes=10), timer=datetime.now)
|
16 |
|
17 |
|
18 |
-
@cached(cache)
|
19 |
def fetch_data(dataset_name: str, workspace: str):
|
20 |
return client.datasets(dataset_name, workspace=workspace)
|
21 |
|
|
|
15 |
cache = TTLCache(maxsize=100, ttl=timedelta(minutes=10), timer=datetime.now)
|
16 |
|
17 |
|
|
|
18 |
def fetch_data(dataset_name: str, workspace: str):
|
19 |
return client.datasets(dataset_name, workspace=workspace)
|
20 |
|