Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -23,7 +23,7 @@ DATA_FILE = os.path.join("data", DATA_FILENAME)
|
|
23 |
file_name = 'paralist.json'
|
24 |
|
25 |
# reading the json
|
26 |
-
@st.cache
|
27 |
def read_dataset():
|
28 |
repo = Repository( local_dir="data", clone_from=DATASET_REPO_URL, repo_type="dataset", use_auth_token= auth_token)
|
29 |
with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|
|
|
23 |
file_name = 'paralist.json'
|
24 |
|
25 |
# reading the json
|
26 |
+
@st.cache(allow_output_mutation=True)
|
27 |
def read_dataset():
|
28 |
repo = Repository( local_dir="data", clone_from=DATASET_REPO_URL, repo_type="dataset", use_auth_token= auth_token)
|
29 |
with open('data/{}'.format(file_name), 'r', encoding="utf8") as json_file:
|