Spaces:
Sleeping
Sleeping
Update repo_versions.py
Browse files- repo_versions.py +2 -2
repo_versions.py
CHANGED
@@ -11,11 +11,11 @@ DATA_FILENAME = "repo_data.json"
|
|
11 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
12 |
|
13 |
# Function to retrieve the last download entry from the JSON file
|
14 |
-
def store_message_from_json():
|
15 |
try:
|
16 |
|
17 |
repo = Repository(
|
18 |
-
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=
|
19 |
)
|
20 |
# Open and load the JSON file
|
21 |
with open(DATA_FILE, "r") as jsonfile:
|
|
|
11 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
12 |
|
13 |
# Function to retrieve the last download entry from the JSON file
|
14 |
+
def store_message_from_json(hf_token):
|
15 |
try:
|
16 |
|
17 |
repo = Repository(
|
18 |
+
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=hf_token
|
19 |
)
|
20 |
# Open and load the JSON file
|
21 |
with open(DATA_FILE, "r") as jsonfile:
|