Spaces:
Sleeping
Sleeping
elibrowne
commited on
Commit
·
7dd34b5
1
Parent(s):
4904800
Load data after login
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ mode = 0
|
|
37 |
def load_user_data(id):
|
38 |
global user_data
|
39 |
filename = id.replace('@', '_AT_').replace('.', '_DOT_')
|
40 |
-
if file_exists("ebrowne/test-data",
|
41 |
print("File exists, downloading data.")
|
42 |
# If the ID exists, download the file from HuggingFace
|
43 |
path = hf_hub_download(repo_id="ebrowne/test-data", token = os.getenv("HF_TOKEN"), filename="users/" + filename + ".json")
|
|
|
37 |
def load_user_data(id):
|
38 |
global user_data
|
39 |
filename = id.replace('@', '_AT_').replace('.', '_DOT_')
|
40 |
+
if file_exists("ebrowne/test-data", filename + ".json"):
|
41 |
print("File exists, downloading data.")
|
42 |
# If the ID exists, download the file from HuggingFace
|
43 |
path = hf_hub_download(repo_id="ebrowne/test-data", token = os.getenv("HF_TOKEN"), filename="users/" + filename + ".json")
|