Spaces:
Sleeping
Sleeping
meg-huggingface
commited on
Commit
·
a1ce55b
1
Parent(s):
d90ddf9
Changing all tasks to bias-relevant tasks; creating backend.
Browse files- app.py +4 -4
- src/about.py +4 -2
app.py
CHANGED
@@ -140,8 +140,8 @@ def filter_models(
|
|
140 |
return filtered_df
|
141 |
|
142 |
|
143 |
-
|
144 |
-
with
|
145 |
gr.HTML(TITLE)
|
146 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
147 |
|
@@ -374,6 +374,6 @@ with demo:
|
|
374 |
|
375 |
scheduler = BackgroundScheduler()
|
376 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
377 |
-
scheduler.add_job(launch_backend, "interval", seconds=100) # will only allow one job to be run at the same time
|
378 |
scheduler.start()
|
379 |
-
|
|
|
140 |
return filtered_df
|
141 |
|
142 |
|
143 |
+
ui = gr.Blocks(css=custom_css)
|
144 |
+
with ui:
|
145 |
gr.HTML(TITLE)
|
146 |
gr.Markdown(INTRODUCTION_TEXT, elem_classes="markdown-text")
|
147 |
|
|
|
374 |
|
375 |
scheduler = BackgroundScheduler()
|
376 |
scheduler.add_job(restart_space, "interval", seconds=1800)
|
377 |
+
# scheduler.add_job(launch_backend, "interval", seconds=100) # will only allow one job to be run at the same time
|
378 |
scheduler.start()
|
379 |
+
ui.queue(default_concurrency_limit=40).launch()
|
src/about.py
CHANGED
@@ -15,8 +15,10 @@ class Task:
|
|
15 |
class Tasks(Enum):
|
16 |
# task_key in the json file, metric_key in the json file, name to display in the leaderboard
|
17 |
task0 = Task("toxigen", "acc", "Toxicity (lower is better)", cite="_ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection._ Hartvigsen et al., ACL 2022.")
|
18 |
-
task1 = Task("
|
19 |
-
task2 = Task("
|
|
|
|
|
20 |
|
21 |
NUM_FEWSHOT = 0 # Change with your few shot MEG NOTE: Not sure what that means.
|
22 |
# ---------------------------------------------------
|
|
|
15 |
class Tasks(Enum):
|
16 |
# task_key in the json file, metric_key in the json file, name to display in the leaderboard
|
17 |
task0 = Task("toxigen", "acc", "Toxicity (lower is better)", cite="_ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detection._ Hartvigsen et al., ACL 2022.")
|
18 |
+
task1 = Task("truthfulqa", "acc", "Truthful QA", cite="TODO")
|
19 |
+
task2 = Task("crowspairs", "acc", "CrowS-Pairs", cite="TODO")
|
20 |
+
#task2 = Task("anli_r1", "acc", "ANLI", cite="_Adversarial NLI: A New Benchmark for Natural Language Understanding._ Nie et al., ACL 2020.")
|
21 |
+
#task3 = Task("logiqa", "acc_norm", "LogiQA", cite="_LogiQA: A Challenge Dataset for Machine Reading Comprehension with Logical Reasoning_. Liu et al., IJCAI 2020.")
|
22 |
|
23 |
NUM_FEWSHOT = 0 # Change with your few shot MEG NOTE: Not sure what that means.
|
24 |
# ---------------------------------------------------
|