Spaces:
Sleeping
Sleeping
inoki-giskard
commited on
Commit
•
61fc9c6
1
Parent(s):
60f78e5
Change leaderboard id to "giskard-bot/evaluator-leaderboard" constant
Browse files- app_leaderboard.py +2 -1
- text_classification_ui_helpers.py +3 -1
app_leaderboard.py
CHANGED
@@ -5,6 +5,7 @@ import gradio as gr
|
|
5 |
|
6 |
from fetch_utils import (check_dataset_and_get_config,
|
7 |
check_dataset_and_get_split)
|
|
|
8 |
|
9 |
|
10 |
def get_records_from_dataset_repo(dataset_id):
|
@@ -73,7 +74,7 @@ def get_display_df(df):
|
|
73 |
|
74 |
|
75 |
def get_demo():
|
76 |
-
records = get_records_from_dataset_repo(
|
77 |
|
78 |
model_ids = get_model_ids(records)
|
79 |
dataset_ids = get_dataset_ids(records)
|
|
|
5 |
|
6 |
from fetch_utils import (check_dataset_and_get_config,
|
7 |
check_dataset_and_get_split)
|
8 |
+
from text_classification_ui_helpers import LEADERBOARD
|
9 |
|
10 |
|
11 |
def get_records_from_dataset_repo(dataset_id):
|
|
|
74 |
|
75 |
|
76 |
def get_demo():
|
77 |
+
records = get_records_from_dataset_repo(LEADERBOARD)
|
78 |
|
79 |
model_ids = get_model_ids(records)
|
80 |
dataset_ids = get_dataset_ids(records)
|
text_classification_ui_helpers.py
CHANGED
@@ -29,6 +29,8 @@ HF_GSK_HUB_KEY = "GSK_API_KEY"
|
|
29 |
HF_GSK_HUB_HF_TOKEN = "GSK_HF_TOKEN"
|
30 |
HF_GSK_HUB_UNLOCK_TOKEN = "GSK_HUB_UNLOCK_TOKEN"
|
31 |
|
|
|
|
|
32 |
|
33 |
def check_dataset_and_get_config(dataset_id):
|
34 |
try:
|
@@ -270,7 +272,7 @@ def try_submit(m_id, d_id, config, split, local, inference, inference_token, uid
|
|
270 |
|
271 |
leaderboard_dataset = None
|
272 |
if os.environ.get("SPACE_ID") == "giskardai/giskard-evaluator":
|
273 |
-
leaderboard_dataset =
|
274 |
|
275 |
if local:
|
276 |
inference_type = "hf_pipeline"
|
|
|
29 |
HF_GSK_HUB_HF_TOKEN = "GSK_HF_TOKEN"
|
30 |
HF_GSK_HUB_UNLOCK_TOKEN = "GSK_HUB_UNLOCK_TOKEN"
|
31 |
|
32 |
+
LEADERBOARD = "giskard-bot/evaluator-leaderboard"
|
33 |
+
|
34 |
|
35 |
def check_dataset_and_get_config(dataset_id):
|
36 |
try:
|
|
|
272 |
|
273 |
leaderboard_dataset = None
|
274 |
if os.environ.get("SPACE_ID") == "giskardai/giskard-evaluator":
|
275 |
+
leaderboard_dataset = LEADERBOARD
|
276 |
|
277 |
if local:
|
278 |
inference_type = "hf_pipeline"
|