Ezi Ozoani
commited on
Commit
β’
22ee960
1
Parent(s):
7ca1ef7
let the batch patching begin: fixing (i) and textual information
Browse files- 1_π_form.py +3 -2
- __pycache__/middleMan.cpython-39.pyc +0 -0
- current_card.md +1 -1
- middleMan.py +1 -1
- pages/11_ π¬_Model_Card_Contact.py +1 -1
- pages/12_π©βπ»_How_To_Get_Started.py +1 -1
- pages/13_π_Model_Card_Authors.py +1 -1
- pages/14_π_Glossary.py +1 -1
- pages/2_π_Model_Details.py +3 -3
- pages/3_ π_Uses.py +4 -4
- pages/4_β οΈ_Limits_and_Risks.py +2 -2
- pages/5_ποΈββοΈ_Model_training.py +2 -2
- pages/6_π¬_Model_Evaluation.py +3 -3
- pages/7_π_Model_Examination.py +1 -1
1_π_form.py
CHANGED
@@ -109,6 +109,7 @@ def main():
|
|
109 |
"model_description": "Some cool model...",
|
110 |
"shared_by": "",
|
111 |
"the_authors":"",
|
|
|
112 |
"Model_details_text": "",
|
113 |
"Model_developers": "",
|
114 |
"blog_url":"",
|
@@ -176,10 +177,10 @@ def main():
|
|
176 |
|
177 |
st.text_input("Model Name", key=persist("model_name"))
|
178 |
st.text_area("Model Description", help="The model description provides basic details about the model. This includes the architecture, version, if it was introduced in a paper, if an original implementation is available, the author, and general information about the model. Any copyright should be attributed here. General information about training procedures, parameters, and important disclaimers can also be mentioned in this section.", key=persist('model_description'))
|
179 |
-
st.multiselect("Language(s)", list(languages_map), format_func=lambda x: languages_map[x], help="The language(s) associated with this model. If this is not a text-based model, you should specify whatever
|
180 |
st.selectbox("License", [""] + list(license_map.values()), help="The license associated with this model.", key=persist("license"))
|
181 |
st.selectbox("Library Name", [""] + libraries, help="The name of the library this model came from (Ex. pytorch, timm, spacy, keras, etc.). This is usually automatically detected in model repos, so it is not required.", key=persist('library_name'))
|
182 |
-
st.text_input("
|
183 |
st.text_input("Datasets (comma separated)", help="The dataset(s) used to train this model. Use dataset id from https://hf.co/datasets.", key=persist("datasets"))
|
184 |
st.multiselect("Metrics", available_metrics, help="Metrics used in the training/evaluation of this model. Use metric id from https://hf.co/metrics.", key=persist("metrics"))
|
185 |
st.selectbox("Task", [""] + tasks, help="What task does this model aim to solve?", key=persist('task'))
|
|
|
109 |
"model_description": "Some cool model...",
|
110 |
"shared_by": "",
|
111 |
"the_authors":"",
|
112 |
+
"Shared_by":"",
|
113 |
"Model_details_text": "",
|
114 |
"Model_developers": "",
|
115 |
"blog_url":"",
|
|
|
177 |
|
178 |
st.text_input("Model Name", key=persist("model_name"))
|
179 |
st.text_area("Model Description", help="The model description provides basic details about the model. This includes the architecture, version, if it was introduced in a paper, if an original implementation is available, the author, and general information about the model. Any copyright should be attributed here. General information about training procedures, parameters, and important disclaimers can also be mentioned in this section.", key=persist('model_description'))
|
180 |
+
st.multiselect("Language(s)", list(languages_map), format_func=lambda x: languages_map[x], help="The language(s) associated with this model. If this is not a text-based model, you should specify whatever language that is used in the dataset. For instance, if the dataset's labels are in english, you should select English here.", key=persist("languages"))
|
181 |
st.selectbox("License", [""] + list(license_map.values()), help="The license associated with this model.", key=persist("license"))
|
182 |
st.selectbox("Library Name", [""] + libraries, help="The name of the library this model came from (Ex. pytorch, timm, spacy, keras, etc.). This is usually automatically detected in model repos, so it is not required.", key=persist('library_name'))
|
183 |
+
st.text_input("Parent Model (URL)", help="If this model has another model as its base, please provide the URL link to the parent model", key=persist("Parent_Model_name"))
|
184 |
st.text_input("Datasets (comma separated)", help="The dataset(s) used to train this model. Use dataset id from https://hf.co/datasets.", key=persist("datasets"))
|
185 |
st.multiselect("Metrics", available_metrics, help="Metrics used in the training/evaluation of this model. Use metric id from https://hf.co/metrics.", key=persist("metrics"))
|
186 |
st.selectbox("Task", [""] + tasks, help="What task does this model aim to solve?", key=persist('task'))
|
__pycache__/middleMan.cpython-39.pyc
CHANGED
Binary files a/__pycache__/middleMan.cpython-39.pyc and b/__pycache__/middleMan.cpython-39.pyc differ
|
|
current_card.md
CHANGED
@@ -48,7 +48,7 @@
|
|
48 |
|
49 |
## Model Description
|
50 |
|
51 |
-
<!-->
|
52 |
{{ the_model_description | default("More information needed", true)}}
|
53 |
|
54 |
- **Developed by:** {{ developers | default("More information needed", true)}}
|
|
|
48 |
|
49 |
## Model Description
|
50 |
|
51 |
+
<!--> This section provides basic information about what the model is, its current status, and where it came from.. <!-->
|
52 |
{{ the_model_description | default("More information needed", true)}}
|
53 |
|
54 |
- **Developed by:** {{ developers | default("More information needed", true)}}
|
middleMan.py
CHANGED
@@ -25,7 +25,7 @@ def parse_into_jinja_markdown():
|
|
25 |
# citation on form: check box for bibtex or apa: then parse
|
26 |
return (temp.render(model_id = st.session_state["model_name"],
|
27 |
language = st.session_state["languages"],
|
28 |
-
the_model_description = st.session_state["model_description"],developers=st.session_state["Model_developers"],shared_by = st.session_state["
|
29 |
parent_model_link = st.session_state['Parent_Model_url'],
|
30 |
direct_use = st.session_state["Direct_Use"], downstream_use = st.session_state["Downstream_Use"],out_of_scope_use = st.session_state["Out-of-Scope_Use"],
|
31 |
bias_risks_limitations = st.session_state["Model_Limits_n_Risks"], bias_recommendations = st.session_state['Recommendations'],
|
|
|
25 |
# citation on form: check box for bibtex or apa: then parse
|
26 |
return (temp.render(model_id = st.session_state["model_name"],
|
27 |
language = st.session_state["languages"],
|
28 |
+
the_model_description = st.session_state["model_description"],developers=st.session_state["Model_developers"],shared_by = st.session_state["Shared_by"],model_license = st.session_state['license'],
|
29 |
parent_model_link = st.session_state['Parent_Model_url'],
|
30 |
direct_use = st.session_state["Direct_Use"], downstream_use = st.session_state["Downstream_Use"],out_of_scope_use = st.session_state["Out-of-Scope_Use"],
|
31 |
bias_risks_limitations = st.session_state["Model_Limits_n_Risks"], bias_recommendations = st.session_state['Recommendations'],
|
pages/11_ π¬_Model_Card_Contact.py
CHANGED
@@ -14,7 +14,7 @@ def main():
|
|
14 |
def cs_body():
|
15 |
|
16 |
st.markdown('# Model Card Contact')
|
17 |
-
st.text_area("
|
18 |
|
19 |
|
20 |
|
|
|
14 |
def cs_body():
|
15 |
|
16 |
st.markdown('# Model Card Contact')
|
17 |
+
st.text_area("How can people who have updates to the Model Card contact the authors?", key=persist("Model_card_contact"), )
|
18 |
|
19 |
|
20 |
|
pages/12_π©βπ»_How_To_Get_Started.py
CHANGED
@@ -21,7 +21,7 @@ def cs_body():
|
|
21 |
|
22 |
st.markdown('# How to Get Started with the Model')
|
23 |
st.session_state['Model_how_to'] = text_pass
|
24 |
-
st.text_area("
|
25 |
|
26 |
|
27 |
|
|
|
21 |
|
22 |
st.markdown('# How to Get Started with the Model')
|
23 |
st.session_state['Model_how_to'] = text_pass
|
24 |
+
st.text_area("Code snippet to show how to use the model.",height = 300, key=persist("Model_how_to"))
|
25 |
|
26 |
|
27 |
|
pages/13_π_Model_Card_Authors.py
CHANGED
@@ -16,7 +16,7 @@ def cs_body():
|
|
16 |
#card.save('current_editable.md')
|
17 |
|
18 |
st.markdown('# Model Card Authors [optional]')
|
19 |
-
st.text_area("This section provides another layer of transparency and accountability. Whose views is this model card representing? How many voices were included in its construction? Etc.",height = 180, key=persist("the_authors"))
|
20 |
|
21 |
|
22 |
|
|
|
16 |
#card.save('current_editable.md')
|
17 |
|
18 |
st.markdown('# Model Card Authors [optional]')
|
19 |
+
st.text_area("This section also provides another layer of transparency and accountability. Whose views is this model card representing? How many voices were included in its construction? Etc.",height = 180, help = "The people who actually constructed the Model Card go here.",key=persist("the_authors"))
|
20 |
|
21 |
|
22 |
|
pages/14_π_Glossary.py
CHANGED
@@ -12,7 +12,7 @@ def main():
|
|
12 |
def cs_body():
|
13 |
|
14 |
st.markdown('# Glossary [optional]')
|
15 |
-
st.text_area("
|
16 |
|
17 |
|
18 |
|
|
|
12 |
def cs_body():
|
13 |
|
14 |
st.markdown('# Glossary [optional]')
|
15 |
+
st.text_area("Terms used in the model card that need to be clearly defined in order to be accessible across audiences go here.",height = 200, key=persist("Glossary"))
|
16 |
|
17 |
|
18 |
|
pages/2_π_Model_Details.py
CHANGED
@@ -60,11 +60,11 @@ def cs_body():
|
|
60 |
st.markdown('### Model Type:')
|
61 |
|
62 |
with right:
|
63 |
-
st.text_input("",help="
|
64 |
st.write("\n")
|
65 |
-
st.text_input("",help="
|
66 |
st.write("\n")
|
67 |
-
st.selectbox("",[""] + list(license_map.values()), help="
|
68 |
|
69 |
with st.container():
|
70 |
|
|
|
60 |
st.markdown('### Model Type:')
|
61 |
|
62 |
with right:
|
63 |
+
st.text_input("",help="List the people who built the model.", key=persist("Model_developers"))
|
64 |
st.write("\n")
|
65 |
+
st.text_input("",help="List the people/organization making the model available online.",key=persist("Shared_by"))
|
66 |
st.write("\n")
|
67 |
+
st.selectbox("",[""] + list(license_map.values()), help="The license associated with this model.", key=persist("license"))
|
68 |
|
69 |
with st.container():
|
70 |
|
pages/3_ π_Uses.py
CHANGED
@@ -10,7 +10,7 @@ def main():
|
|
10 |
def cs_body():
|
11 |
|
12 |
st.markdown('# Uses')
|
13 |
-
st.text_area("
|
14 |
left, right = st.columns([2,4])
|
15 |
|
16 |
#st.markdown('### Model Description')
|
@@ -35,9 +35,9 @@ def cs_body():
|
|
35 |
st.markdown('### Out-of-Scope Use:')
|
36 |
|
37 |
with right:
|
38 |
-
st.text_area("",help="
|
39 |
-
st.text_area("",help="
|
40 |
-
st.text_area("", help="
|
41 |
|
42 |
|
43 |
|
|
|
10 |
def cs_body():
|
11 |
|
12 |
st.markdown('# Uses')
|
13 |
+
st.text_area("This section addresses questions around how the model is intended to be used, discusses the foreseeable users of the model (including those affected by the model), and describes uses that are considered out of scope or misuse of the model.")
|
14 |
left, right = st.columns([2,4])
|
15 |
|
16 |
#st.markdown('### Model Description')
|
|
|
35 |
st.markdown('### Out-of-Scope Use:')
|
36 |
|
37 |
with right:
|
38 |
+
st.text_area("",help="How can this model be used, without additional post-processing or further pipeline work?", key=persist("Direct_Use"))
|
39 |
+
st.text_area("",help="How can this model be used, when incorporated into another system?",key=persist("Downstream_Use"))
|
40 |
+
st.text_area("", help="What tasks will the model not work for?", key=persist("Out-of-Scope_Use"))
|
41 |
|
42 |
|
43 |
|
pages/4_β οΈ_Limits_and_Risks.py
CHANGED
@@ -11,7 +11,7 @@ def main():
|
|
11 |
def cs_body():
|
12 |
|
13 |
st.markdown('# Bias, Risks, and Limitations')
|
14 |
-
st.text_area("Use this section to convey both technical and sociotechnical limitations",help="Provide an overview of the possible Limitations and Risks that may be associated with this model", key=persist("Model_Limits_n_Risks"), )
|
15 |
left, right = st.columns([2,4])
|
16 |
|
17 |
#st.markdown('### Model Description')
|
@@ -25,7 +25,7 @@ def cs_body():
|
|
25 |
|
26 |
with right:
|
27 |
#soutput_jinja = parse_into_jinja_markdown()
|
28 |
-
st.text_area("",help="
|
29 |
#st.write("\n")
|
30 |
|
31 |
|
|
|
11 |
def cs_body():
|
12 |
|
13 |
st.markdown('# Bias, Risks, and Limitations')
|
14 |
+
st.text_area("What are the known or foreseeable issues stemming from this model? Use this section to convey both technical and sociotechnical limitations",help="Provide an overview of the possible Limitations and Risks that may be associated with this model", key=persist("Model_Limits_n_Risks"), )
|
15 |
left, right = st.columns([2,4])
|
16 |
|
17 |
#st.markdown('### Model Description')
|
|
|
25 |
|
26 |
with right:
|
27 |
#soutput_jinja = parse_into_jinja_markdown()
|
28 |
+
st.text_area("",help="How can the known or foreseeable issues be addressed?", key=persist("Recommendations"))
|
29 |
#st.write("\n")
|
30 |
|
31 |
|
pages/5_ποΈββοΈ_Model_training.py
CHANGED
@@ -60,7 +60,7 @@ def cs_body():
|
|
60 |
with right:
|
61 |
#soutput_jinja = parse_into_jinja_markdown()
|
62 |
|
63 |
-
st.text_area("", key=persist("training_Data"))
|
64 |
#st.write("\n")
|
65 |
st.write("\n")
|
66 |
st.write("\n")
|
@@ -74,7 +74,7 @@ def cs_body():
|
|
74 |
st.write("\n")
|
75 |
st.write("\n")
|
76 |
|
77 |
-
st.text_area("",
|
78 |
st.text_area("", help = "This section provides information about throughput, start/end time, checkpoint size if relevant, etc.", key=persist("Speeds_Sizes_Times"))
|
79 |
|
80 |
|
|
|
60 |
with right:
|
61 |
#soutput_jinja = parse_into_jinja_markdown()
|
62 |
|
63 |
+
st.text_area("", help ="Ideally this links to a Dataset Card.", key=persist("training_Data"))
|
64 |
#st.write("\n")
|
65 |
st.write("\n")
|
66 |
st.write("\n")
|
|
|
74 |
st.write("\n")
|
75 |
st.write("\n")
|
76 |
|
77 |
+
st.text_area("",key=persist("model_preprocessing"))
|
78 |
st.text_area("", help = "This section provides information about throughput, start/end time, checkpoint size if relevant, etc.", key=persist("Speeds_Sizes_Times"))
|
79 |
|
80 |
|
pages/6_π¬_Model_Evaluation.py
CHANGED
@@ -51,10 +51,10 @@ def cs_body():
|
|
51 |
|
52 |
with right:
|
53 |
#soutput_jinja = parse_into_jinja_markdown()
|
54 |
-
st.text_area("", key=persist("Testing_Data"))
|
55 |
#st.write("\n")
|
56 |
-
st.text_area("",help="
|
57 |
-
st.text_area("", help="
|
58 |
st.text_area("", key=persist("Model_Results"))
|
59 |
|
60 |
|
|
|
51 |
|
52 |
with right:
|
53 |
#soutput_jinja = parse_into_jinja_markdown()
|
54 |
+
st.text_area("", help="Ideally this links to a Dataset Card.",key=persist("Testing_Data"))
|
55 |
#st.write("\n")
|
56 |
+
st.text_area("",help="What are the foreseeable characteristics that will influence how the model behaves? This includes domain and context, as well as population subgroups.",key=persist("Factors"))
|
57 |
+
st.text_area("", help="What metrics will be used for evaluation in light of tradeoffs between different errors?", key=persist("Metrics"))
|
58 |
st.text_area("", key=persist("Model_Results"))
|
59 |
|
60 |
|
pages/7_π_Model_Examination.py
CHANGED
@@ -18,7 +18,7 @@ def cs_body():
|
|
18 |
#help_text = 'Give an overview of your model, the relevant research paper, who trained it, etc.'
|
19 |
|
20 |
st.markdown('# Model Examination')
|
21 |
-
st.text_area("
|
22 |
#left, right = st.columns([2,4], gap="small")
|
23 |
|
24 |
#st.markdown('### Model Description')
|
|
|
18 |
#help_text = 'Give an overview of your model, the relevant research paper, who trained it, etc.'
|
19 |
|
20 |
st.markdown('# Model Examination')
|
21 |
+
st.text_area("Experimental: Where explainability/interpretability work can go.",height = 200, key=persist("Model_examin"), )
|
22 |
#left, right = st.columns([2,4], gap="small")
|
23 |
|
24 |
#st.markdown('### Model Description')
|