Spaces:
Runtime error
Runtime error
Sebastian Gehrmann
commited on
Commit
·
05d58bc
1
Parent(s):
e0a15f4
minor edits
Browse files- datacards/gem.py +3 -0
- datacards/overview.py +6 -0
datacards/gem.py
CHANGED
@@ -45,6 +45,9 @@ def gem_page():
|
|
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"],
|
|
|
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 |
+
else:
|
49 |
+
st.session_state.card_dict["gem"]["rationale"]["distinction-description"] = "N/A"
|
50 |
+
|
51 |
make_text_area(
|
52 |
label="What aspect of model ability can be measured with this dataset?",
|
53 |
key_list=key_pref + ["model-ability"],
|
datacards/overview.py
CHANGED
@@ -133,6 +133,9 @@ def overview_page():
|
|
133 |
key_list=key_pref + ["license-other"],
|
134 |
help="[free text]",
|
135 |
)
|
|
|
|
|
|
|
136 |
|
137 |
make_selectbox(
|
138 |
label="What primary task does the dataset support?",
|
@@ -159,6 +162,9 @@ def overview_page():
|
|
159 |
key_list=key_pref + ["task-other"],
|
160 |
help="[free text]",
|
161 |
)
|
|
|
|
|
|
|
162 |
make_text_area(
|
163 |
label="Provide a short description of the communicative goal of a model trained for this task on this dataset.",
|
164 |
key_list=key_pref + ["communicative"],
|
|
|
133 |
key_list=key_pref + ["license-other"],
|
134 |
help="[free text]",
|
135 |
)
|
136 |
+
else:
|
137 |
+
st.session_state.card_dict["overview"]["languages"]["license-other"] = "N/A"
|
138 |
+
|
139 |
|
140 |
make_selectbox(
|
141 |
label="What primary task does the dataset support?",
|
|
|
162 |
key_list=key_pref + ["task-other"],
|
163 |
help="[free text]",
|
164 |
)
|
165 |
+
else:
|
166 |
+
st.session_state.card_dict["overview"]["languages"]["task-other"] = "N/A"
|
167 |
+
|
168 |
make_text_area(
|
169 |
label="Provide a short description of the communicative goal of a model trained for this task on this dataset.",
|
170 |
key_list=key_pref + ["communicative"],
|