Update app.py
Browse files
app.py
CHANGED
@@ -12,6 +12,18 @@ def load_data():
|
|
12 |
|
13 |
existing_data = load_data()
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
# 根据排名生成表格数据
|
16 |
def generate_table(data):
|
17 |
if not data:
|
|
|
12 |
|
13 |
existing_data = load_data()
|
14 |
|
15 |
+
# 创建本地文件夹用于存储数据文件
|
16 |
+
dataset_dir = Path("my_dataset")
|
17 |
+
dataset_dir.mkdir(parents=True, exist_ok=True)
|
18 |
+
|
19 |
+
# 初始化 CommitScheduler
|
20 |
+
scheduler = CommitScheduler(
|
21 |
+
repo_id="stabletoolbench/StableToolBench_data", # 替换为你的用户名和数据集仓库名
|
22 |
+
repo_type="dataset",
|
23 |
+
folder_path=dataset_dir,
|
24 |
+
path_in_repo="leaderboard_data.json",
|
25 |
+
)
|
26 |
+
|
27 |
# 根据排名生成表格数据
|
28 |
def generate_table(data):
|
29 |
if not data:
|