Spaces:
Runtime error
Runtime error
Sebastian Gehrmann
commited on
Commit
•
ce0bf11
1
Parent(s):
0ea4f6d
minor edits
Browse files- datacards/overview.py +16 -2
datacards/overview.py
CHANGED
@@ -55,7 +55,7 @@ def overview_page():
|
|
55 |
help="[URL]",
|
56 |
)
|
57 |
make_text_area(
|
58 |
-
label="Provide the BibTex-formatted reference for the dataset.",
|
59 |
key_list=key_pref + ["paper-bibtext"],
|
60 |
help="[free text]",
|
61 |
)
|
@@ -119,7 +119,7 @@ def overview_page():
|
|
119 |
make_text_area(
|
120 |
label="What is the intended use of the dataset?",
|
121 |
key_list=key_pref + ["intended-use"],
|
122 |
-
help="[free text, paragraphs]",
|
123 |
)
|
124 |
make_selectbox(
|
125 |
label="What is the license of the dataset?",
|
@@ -127,6 +127,13 @@ def overview_page():
|
|
127 |
options=license_list,
|
128 |
help="select `other` if missing from list, `unkown` if not provided.",
|
129 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
make_selectbox(
|
131 |
label="What primary task does the dataset support?",
|
132 |
key_list=key_pref + ["task"],
|
@@ -142,9 +149,16 @@ def overview_page():
|
|
142 |
"Style Transfer",
|
143 |
"Summarization",
|
144 |
"Text-to-Slide",
|
|
|
145 |
],
|
146 |
help="Select `other` if the task is not included in the list.",
|
147 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
make_text_area(
|
149 |
label="Provide a short description of the communicative goal of a model trained for this task on this dataset.",
|
150 |
key_list=key_pref + ["communicative"],
|
|
|
55 |
help="[URL]",
|
56 |
)
|
57 |
make_text_area(
|
58 |
+
label="Provide the BibTex-formatted reference for the dataset. Please use the correct published version (ACL anthology, etc.) instead of google scholar created Bibtex.",
|
59 |
key_list=key_pref + ["paper-bibtext"],
|
60 |
help="[free text]",
|
61 |
)
|
|
|
119 |
make_text_area(
|
120 |
label="What is the intended use of the dataset?",
|
121 |
key_list=key_pref + ["intended-use"],
|
122 |
+
help="[free text, paragraphs] - Describe how the dataset creators describe its purpose and intended use.",
|
123 |
)
|
124 |
make_selectbox(
|
125 |
label="What is the license of the dataset?",
|
|
|
127 |
options=license_list,
|
128 |
help="select `other` if missing from list, `unkown` if not provided.",
|
129 |
)
|
130 |
+
if "other" in st.session_state.card_dict["overview"]["languages"].get("license", []):
|
131 |
+
make_text_input(
|
132 |
+
label="What is the 'other' license of the dataset?",
|
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?",
|
139 |
key_list=key_pref + ["task"],
|
|
|
149 |
"Style Transfer",
|
150 |
"Summarization",
|
151 |
"Text-to-Slide",
|
152 |
+
"Other"
|
153 |
],
|
154 |
help="Select `other` if the task is not included in the list.",
|
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 |
+
)
|
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"],
|