Spaces:
Runtime error
Runtime error
Yacine Jernite
commited on
Commit
•
0ea4f6d
1
Parent(s):
28dd726
contest
Browse files- app.py +1 -1
- datacards/considerations.py +20 -10
app.py
CHANGED
@@ -125,7 +125,7 @@ def review_page():
|
|
125 |
file_name=dataset_file_name,
|
126 |
)
|
127 |
else:
|
128 |
-
st.markdown("Enter dataset name above to
|
129 |
st.markdown("---\n")
|
130 |
st.write(st.session_state.get("card_dict", {}))
|
131 |
# TODO add buttons to save and download
|
|
|
125 |
file_name=dataset_file_name,
|
126 |
)
|
127 |
else:
|
128 |
+
st.markdown("##### Enter a dataset name above to be able to download the card!")
|
129 |
st.markdown("---\n")
|
130 |
st.write(st.session_state.get("card_dict", {}))
|
131 |
# TODO add buttons to save and download
|
datacards/considerations.py
CHANGED
@@ -8,7 +8,7 @@ from .streamlit_utils import (
|
|
8 |
make_radio,
|
9 |
)
|
10 |
|
11 |
-
N_FIELDS_PII =
|
12 |
N_FIELDS_LICENSES = 3
|
13 |
N_FIELDS_LIMITATIONS = 4
|
14 |
|
@@ -24,8 +24,11 @@ def considerations_page():
|
|
24 |
st.session_state.card_dict["considerations"]["pii"] = st.session_state.card_dict[
|
25 |
"considerations"
|
26 |
].get("pii", {})
|
27 |
-
|
28 |
-
|
|
|
|
|
|
|
29 |
|
30 |
with st.expander("Licenses", expanded=False):
|
31 |
key_pref = ["considerations", "licenses"]
|
@@ -33,16 +36,23 @@ def considerations_page():
|
|
33 |
"considerations"
|
34 |
].get("licenses", {})
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
key_list=key_pref + ["data-restrictions"],
|
42 |
help="Does the license restrict how the dataset can be used?",
|
43 |
)
|
44 |
-
|
45 |
-
label="Are
|
46 |
options=["Open", "Non-Commercial", "Copyrighted", "Other"],
|
47 |
key_list=key_pref + ["data-copyright"],
|
48 |
help="Are there restructions on the underlying data?",
|
|
|
8 |
make_radio,
|
9 |
)
|
10 |
|
11 |
+
N_FIELDS_PII = 1
|
12 |
N_FIELDS_LICENSES = 3
|
13 |
N_FIELDS_LIMITATIONS = 4
|
14 |
|
|
|
24 |
st.session_state.card_dict["considerations"]["pii"] = st.session_state.card_dict[
|
25 |
"considerations"
|
26 |
].get("pii", {})
|
27 |
+
make_text_area(
|
28 |
+
label="Considering your answers to the PII part of the Data Curation Section, describe any potential privacy risks of using the data.",
|
29 |
+
key_list=key_pref+["risks-description"],
|
30 |
+
help="In terms for example of having models memorize private information of data subjects or other breaches of privacy."
|
31 |
+
)
|
32 |
|
33 |
with st.expander("Licenses", expanded=False):
|
34 |
key_pref = ["considerations", "licenses"]
|
|
|
36 |
"considerations"
|
37 |
].get("licenses", {})
|
38 |
|
39 |
+
make_multiselect(
|
40 |
+
label="Are there restrictions on the dataset use?",
|
41 |
+
options=[
|
42 |
+
"public domain",
|
43 |
+
"multiple licenses",
|
44 |
+
"copyright - all rights reserved",
|
45 |
+
"open license - commercial use allowed",
|
46 |
+
"research use only",
|
47 |
+
"non-commercial use only",
|
48 |
+
"do not distribute",
|
49 |
+
"other",
|
50 |
+
],
|
51 |
key_list=key_pref + ["data-restrictions"],
|
52 |
help="Does the license restrict how the dataset can be used?",
|
53 |
)
|
54 |
+
make_multiselect(
|
55 |
+
label="Are there restrictions on the underlying data?",
|
56 |
options=["Open", "Non-Commercial", "Copyrighted", "Other"],
|
57 |
key_list=key_pref + ["data-copyright"],
|
58 |
help="Are there restructions on the underlying data?",
|