Spaces:
Runtime error
Runtime error
Sasha Rush
commited on
Commit
•
883f060
1
Parent(s):
ed632fe
save
Browse files
app.py
CHANGED
@@ -19,16 +19,12 @@ import csv
|
|
19 |
from huggingface_hub import HfApi, Repository
|
20 |
DATASET_REPO_URL = "https://huggingface.co/datasets/srush/gptworld-leaderboard"
|
21 |
HF_TOKEN = os.environ.get("HF_API")
|
22 |
-
hf_api = HfApi(
|
23 |
-
endpoint="https://huggingface.co", # Can be a Private Hub endpoint.
|
24 |
-
token=os.environ.get("HF_API"), # Token is not persisted on the machine.
|
25 |
-
)
|
26 |
DATA_FILENAME = "data.csv"
|
27 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
28 |
|
29 |
openai.api_key = ""
|
30 |
tab = " "
|
31 |
-
repo = Repository(
|
32 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
33 |
)
|
34 |
|
|
|
19 |
from huggingface_hub import HfApi, Repository
|
20 |
DATASET_REPO_URL = "https://huggingface.co/datasets/srush/gptworld-leaderboard"
|
21 |
HF_TOKEN = os.environ.get("HF_API")
|
|
|
|
|
|
|
|
|
22 |
DATA_FILENAME = "data.csv"
|
23 |
DATA_FILE = os.path.join("data", DATA_FILENAME)
|
24 |
|
25 |
openai.api_key = ""
|
26 |
tab = " "
|
27 |
+
repo = Repository(git_user="srush",
|
28 |
local_dir="data", clone_from=DATASET_REPO_URL, use_auth_token=HF_TOKEN
|
29 |
)
|
30 |
|