Spaces:
Sleeping
Sleeping
tried to correct token
Browse files
app.py
CHANGED
|
@@ -94,15 +94,15 @@ def update_results_dataset(new_row_df):
|
|
| 94 |
|
| 95 |
# Info to change for your repository
|
| 96 |
# ----------------------------------
|
| 97 |
-
HF_TOKEN = os.environ.get("
|
| 98 |
-
print(f"{
|
| 99 |
OWNER = "IndoorOutdoor" # Change to your org - don't forget to create a results and request dataset, with the correct format!
|
| 100 |
# ----------------------------------
|
| 101 |
READ_TOKEN = os.environ.get("read_token")
|
| 102 |
local_file_path = hf_hub_download(repo_id="IndoorOutdoor/metadata",
|
| 103 |
filename="ali/home/office-gain-50-10-25-2023-16-16-03-dump1090.txt",
|
| 104 |
repo_type="dataset",
|
| 105 |
-
token=
|
| 106 |
REPO_ID = f"{OWNER}/leaderboard"
|
| 107 |
QUEUE_REPO = f"{OWNER}/requests"
|
| 108 |
RESULTS_REPO = f"{OWNER}/results"
|
|
@@ -263,7 +263,7 @@ def evaluate_model(username, groupname, file):
|
|
| 263 |
local_file_path = hf_hub_download(repo_id="IndoorOutdoor/metadata",
|
| 264 |
filename=filename,
|
| 265 |
repo_type="dataset",
|
| 266 |
-
token=
|
| 267 |
sectors_model = import_and_run_function(file, "evaluate", local_file_path)
|
| 268 |
if sectors_model == None:
|
| 269 |
return None
|
|
|
|
| 94 |
|
| 95 |
# Info to change for your repository
|
| 96 |
# ----------------------------------
|
| 97 |
+
HF_TOKEN = os.environ.get("ALL_TOKEN") # A read/write token for your org
|
| 98 |
+
print(f"{ALL_TOKEN}")
|
| 99 |
OWNER = "IndoorOutdoor" # Change to your org - don't forget to create a results and request dataset, with the correct format!
|
| 100 |
# ----------------------------------
|
| 101 |
READ_TOKEN = os.environ.get("read_token")
|
| 102 |
local_file_path = hf_hub_download(repo_id="IndoorOutdoor/metadata",
|
| 103 |
filename="ali/home/office-gain-50-10-25-2023-16-16-03-dump1090.txt",
|
| 104 |
repo_type="dataset",
|
| 105 |
+
token=HF_TOKEN)
|
| 106 |
REPO_ID = f"{OWNER}/leaderboard"
|
| 107 |
QUEUE_REPO = f"{OWNER}/requests"
|
| 108 |
RESULTS_REPO = f"{OWNER}/results"
|
|
|
|
| 263 |
local_file_path = hf_hub_download(repo_id="IndoorOutdoor/metadata",
|
| 264 |
filename=filename,
|
| 265 |
repo_type="dataset",
|
| 266 |
+
token=HF_TOKEN)
|
| 267 |
sectors_model = import_and_run_function(file, "evaluate", local_file_path)
|
| 268 |
if sectors_model == None:
|
| 269 |
return None
|