Spaces:
Running
Running
Commit
·
bd1bd81
1
Parent(s):
fd4d6d5
feat: Update title and fix startup errors
Browse files- src/about.py +1 -1
- src/populate.py +3 -0
src/about.py
CHANGED
|
@@ -21,7 +21,7 @@ NUM_FEWSHOT = 0 # Change with your few shot
|
|
| 21 |
|
| 22 |
|
| 23 |
# Your leaderboard name
|
| 24 |
-
TITLE = """<h1 align="center" id="space-title">
|
| 25 |
|
| 26 |
# What does your leaderboard evaluate?
|
| 27 |
INTRODUCTION_TEXT = """
|
|
|
|
| 21 |
|
| 22 |
|
| 23 |
# Your leaderboard name
|
| 24 |
+
TITLE = """<h1 align="center" id="space-title">doubao-bench leaderboard</h1>"""
|
| 25 |
|
| 26 |
# What does your leaderboard evaluate?
|
| 27 |
INTRODUCTION_TEXT = """
|
src/populate.py
CHANGED
|
@@ -27,6 +27,9 @@ def get_leaderboard_df(results_path: str, requests_path: str, cols: list, benchm
|
|
| 27 |
|
| 28 |
def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
|
| 29 |
"""Creates the different dataframes for the evaluation queues requestes"""
|
|
|
|
|
|
|
|
|
|
| 30 |
entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
|
| 31 |
all_evals = []
|
| 32 |
|
|
|
|
| 27 |
|
| 28 |
def get_evaluation_queue_df(save_path: str, cols: list) -> list[pd.DataFrame]:
|
| 29 |
"""Creates the different dataframes for the evaluation queues requestes"""
|
| 30 |
+
if not os.path.exists(save_path):
|
| 31 |
+
return pd.DataFrame(), pd.DataFrame(), pd.DataFrame()
|
| 32 |
+
|
| 33 |
entries = [entry for entry in os.listdir(save_path) if not entry.startswith(".")]
|
| 34 |
all_evals = []
|
| 35 |
|