Spaces:
Sleeping
Sleeping
meg-huggingface
commited on
Commit
•
c3873b8
1
Parent(s):
5f62bcb
Merge
Browse files- app.py +2 -0
- src/about.py +1 -0
app.py
CHANGED
@@ -45,6 +45,7 @@ try:
|
|
45 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
46 |
)
|
47 |
except Exception:
|
|
|
48 |
restart_space()
|
49 |
try:
|
50 |
print(EVAL_RESULTS_PATH)
|
@@ -52,6 +53,7 @@ try:
|
|
52 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
53 |
)
|
54 |
except Exception:
|
|
|
55 |
restart_space()
|
56 |
|
57 |
|
|
|
45 |
repo_id=QUEUE_REPO, local_dir=EVAL_REQUESTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
46 |
)
|
47 |
except Exception:
|
48 |
+
print("Could not download snapshot. Restarting.")
|
49 |
restart_space()
|
50 |
try:
|
51 |
print(EVAL_RESULTS_PATH)
|
|
|
53 |
repo_id=RESULTS_REPO, local_dir=EVAL_RESULTS_PATH, repo_type="dataset", tqdm_class=None, etag_timeout=30
|
54 |
)
|
55 |
except Exception:
|
56 |
+
print("Could not download snapshot. Restarting.")
|
57 |
restart_space()
|
58 |
|
59 |
|
src/about.py
CHANGED
@@ -14,6 +14,7 @@ class Tasks(Enum):
|
|
14 |
# task_key in the json file, metric_key in the json file, name to display in the leaderboard
|
15 |
task0 = Task("anli_r1", "acc", "ANLI")
|
16 |
task1 = Task("logiqa", "acc_norm", "LogiQA")
|
|
|
17 |
|
18 |
NUM_FEWSHOT = 0 # Change with your few shot
|
19 |
# ---------------------------------------------------
|
|
|
14 |
# task_key in the json file, metric_key in the json file, name to display in the leaderboard
|
15 |
task0 = Task("anli_r1", "acc", "ANLI")
|
16 |
task1 = Task("logiqa", "acc_norm", "LogiQA")
|
17 |
+
task2 = Task("real_toxicity_prompts", "bias", "Toxicity")
|
18 |
|
19 |
NUM_FEWSHOT = 0 # Change with your few shot
|
20 |
# ---------------------------------------------------
|