Spaces:
Sleeping
Sleeping
ZeroCommand
commited on
Commit
·
125e9f3
1
Parent(s):
8b223ff
return empty df when loading leaderboard dataset error
Browse files- app_leaderboard.py +2 -1
app_leaderboard.py
CHANGED
@@ -2,6 +2,7 @@ import logging
|
|
2 |
|
3 |
import datasets
|
4 |
import gradio as gr
|
|
|
5 |
|
6 |
from fetch_utils import (check_dataset_and_get_config,
|
7 |
check_dataset_and_get_split)
|
@@ -24,7 +25,7 @@ def get_records_from_dataset_repo(dataset_id):
|
|
24 |
logger.warning(
|
25 |
f"Failed to load dataset {dataset_id} with config {dataset_config}: {e}"
|
26 |
)
|
27 |
-
return
|
28 |
|
29 |
|
30 |
def get_model_ids(ds):
|
|
|
2 |
|
3 |
import datasets
|
4 |
import gradio as gr
|
5 |
+
import pandas as pd
|
6 |
|
7 |
from fetch_utils import (check_dataset_and_get_config,
|
8 |
check_dataset_and_get_split)
|
|
|
25 |
logger.warning(
|
26 |
f"Failed to load dataset {dataset_id} with config {dataset_config}: {e}"
|
27 |
)
|
28 |
+
return pd.DataFrame()
|
29 |
|
30 |
|
31 |
def get_model_ids(ds):
|