Update app.py
Browse files
app.py
CHANGED
|
@@ -3,6 +3,10 @@ import gradio as gr
|
|
| 3 |
from huggingface_hub import CommitScheduler
|
| 4 |
from pathlib import Path
|
| 5 |
import requests
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def load_data():
|
| 8 |
url = "https://huggingface.co/datasets/stabletoolbench/StableToolBench_data/resolve/main/leaderboard_data.json"
|
|
|
|
| 3 |
from huggingface_hub import CommitScheduler
|
| 4 |
from pathlib import Path
|
| 5 |
import requests
|
| 6 |
+
from huggingface_hub import HfApi, HfFolder
|
| 7 |
+
|
| 8 |
+
# 设置 API token
|
| 9 |
+
HfFolder.save_token("stb_leaderboard_json")
|
| 10 |
|
| 11 |
def load_data():
|
| 12 |
url = "https://huggingface.co/datasets/stabletoolbench/StableToolBench_data/resolve/main/leaderboard_data.json"
|