Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,11 @@ from huggingface_hub import CommitScheduler
|
|
4 |
from pathlib import Path
|
5 |
import requests
|
6 |
from huggingface_hub import HfApi, HfFolder
|
7 |
-
|
8 |
-
|
9 |
-
|
|
|
|
|
10 |
|
11 |
def load_data():
|
12 |
url = "https://huggingface.co/datasets/stabletoolbench/StableToolBench_data/resolve/main/leaderboard_data.json"
|
|
|
4 |
from pathlib import Path
|
5 |
import requests
|
6 |
from huggingface_hub import HfApi, HfFolder
|
7 |
+
from huggingface_hub import HfApi, HfFolder
|
8 |
+
import os
|
9 |
+
# Use the token from an environment variable
|
10 |
+
token = os.getenv('stb_leaderboard_json')
|
11 |
+
HfFolder.save_token(token)
|
12 |
|
13 |
def load_data():
|
14 |
url = "https://huggingface.co/datasets/stabletoolbench/StableToolBench_data/resolve/main/leaderboard_data.json"
|