Spaces:
Runtime error
Runtime error
Sebastian Gehrmann
commited on
Commit
·
e0a15f4
1
Parent(s):
ce0bf11
make distinctions conditional
Browse files- datacards/gem.py +12 -11
- datacards/overview.py +1 -1
datacards/gem.py
CHANGED
|
@@ -33,17 +33,18 @@ def gem_page():
|
|
| 33 |
key_list=key_pref + ["sole-task-dataset"],
|
| 34 |
help="for example, is this the only summarization dataset proposed in GEM",
|
| 35 |
)
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
|
|
|
| 47 |
make_text_area(
|
| 48 |
label="What aspect of model ability can be measured with this dataset?",
|
| 49 |
key_list=key_pref + ["model-ability"],
|
|
|
|
| 33 |
key_list=key_pref + ["sole-task-dataset"],
|
| 34 |
help="for example, is this the only summarization dataset proposed in GEM",
|
| 35 |
)
|
| 36 |
+
if "yes" in st.session_state.card_dict["gem"]["rationale"].get("sole-task-dataset", []):
|
| 37 |
+
make_radio(
|
| 38 |
+
label="Does this dataset cover other languages than other datasets for the same task?",
|
| 39 |
+
options=["no", "yes"],
|
| 40 |
+
key_list=key_pref + ["sole-language-task-dataset"],
|
| 41 |
+
help="for example, is this the only summarization dataset proposed in GEM to have French text?",
|
| 42 |
+
)
|
| 43 |
+
make_text_area(
|
| 44 |
+
label="What else sets this dataset apart from other similar datasets in GEM?",
|
| 45 |
+
key_list=key_pref + ["distinction-description"],
|
| 46 |
+
help="Describe briefly for each similar dataset (same task/languages) what sets this one apart",
|
| 47 |
+
)
|
| 48 |
make_text_area(
|
| 49 |
label="What aspect of model ability can be measured with this dataset?",
|
| 50 |
key_list=key_pref + ["model-ability"],
|
datacards/overview.py
CHANGED
|
@@ -155,7 +155,7 @@ def overview_page():
|
|
| 155 |
)
|
| 156 |
if "Other" in st.session_state.card_dict["overview"]["languages"].get("task", []):
|
| 157 |
make_text_input(
|
| 158 |
-
label="What is the primary task
|
| 159 |
key_list=key_pref + ["task-other"],
|
| 160 |
help="[free text]",
|
| 161 |
)
|
|
|
|
| 155 |
)
|
| 156 |
if "Other" in st.session_state.card_dict["overview"]["languages"].get("task", []):
|
| 157 |
make_text_input(
|
| 158 |
+
label="What is the primary task?",
|
| 159 |
key_list=key_pref + ["task-other"],
|
| 160 |
help="[free text]",
|
| 161 |
)
|