Spaces:
Running
Running
Add environment variable HF_RESULTS_DATASET for easy cloning
Browse files
server.py
CHANGED
@@ -29,9 +29,9 @@ VISIBLE_METRICS = SUPPORTED_METRICS + ["macro_f1"]
|
|
29 |
|
30 |
api = HfApi()
|
31 |
|
32 |
-
|
33 |
-
REPO = f"{ORG}/LLM_benchmark_data"
|
34 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
|
|
35 |
TASKS_METADATA_PATH = "./tasks_metadata.json"
|
36 |
|
37 |
MARKDOWN_SPECIAL_CHARACTERS = {
|
@@ -150,7 +150,7 @@ class ReadWriteLock:
|
|
150 |
|
151 |
class LeaderboardServer:
|
152 |
def __init__(self):
|
153 |
-
self.SERVER_ADDRESS =
|
154 |
self.REPO_TYPE = "dataset"
|
155 |
self.TASKS_METADATA = json.load(open(TASKS_METADATA_PATH))
|
156 |
self.TASKS_CATEGORIES = {self.TASKS_METADATA[task]["category"] for task in self.TASKS_METADATA}
|
|
|
29 |
|
30 |
api = HfApi()
|
31 |
|
32 |
+
HF_RESULTS_DATASET = os.environ.get("HF_RESULTS_DATASET") # <HF_RESULTS_DATASET> ::= <owner> "/" <dataset name>; e.g. CZLC/LLM_benchmark_data
|
|
|
33 |
HF_TOKEN = os.environ.get("HF_TOKEN")
|
34 |
+
|
35 |
TASKS_METADATA_PATH = "./tasks_metadata.json"
|
36 |
|
37 |
MARKDOWN_SPECIAL_CHARACTERS = {
|
|
|
150 |
|
151 |
class LeaderboardServer:
|
152 |
def __init__(self):
|
153 |
+
self.SERVER_ADDRESS = HF_RESULTS_DATASET
|
154 |
self.REPO_TYPE = "dataset"
|
155 |
self.TASKS_METADATA = json.load(open(TASKS_METADATA_PATH))
|
156 |
self.TASKS_CATEGORIES = {self.TASKS_METADATA[task]["category"] for task in self.TASKS_METADATA}
|