Ezi Ozoani commited on
Commit
449bb10
β€’
1 Parent(s): 2d5ffb9

Model type

Browse files
1_πŸ“_form.py CHANGED
@@ -112,6 +112,10 @@ def main():
112
  "Model_details_text": "",
113
  "Model_developers": "",
114
 
 
 
 
 
115
  "Model_how_to": "",
116
 
117
  "Model_uses": "",
@@ -171,6 +175,8 @@ def main():
171
 
172
  warning_placeholder = st.empty()
173
 
 
 
174
  st.text_input("Model Name", key=persist("model_name"))
175
  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'))
176
  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 lanuage is used in the dataset. For instance, if the dataset's labels are in english, you should select English here.", key=persist("languages"))
@@ -185,6 +191,7 @@ def main():
185
  st.text_input("Related GitHub Repository", help="Link to a GitHub repository used in the development of this model", key=persist("github_url"))
186
  st.text_area("Bibtex Citation", help="Bibtex citations for related work", key=persist("bibtex_citations"))
187
  st.text_input("Carbon Emitted:", help="You can estimate carbon emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700)", key=persist("Model_c02_emitted"))
 
188
  # warnings setting
189
  languages=st.session_state.languages or None
190
  license=st.session_state.license or None
 
112
  "Model_details_text": "",
113
  "Model_developers": "",
114
 
115
+ "Machine_Learning_Type":[],
116
+ "Modality":[],
117
+ "Supervision_learning_method":[],
118
+
119
  "Model_how_to": "",
120
 
121
  "Model_uses": "",
 
175
 
176
  warning_placeholder = st.empty()
177
 
178
+ Supervision_learning_method_list = ["Unsupervised","Semi-supervised","Self-supervised","Supervised"]
179
+
180
  st.text_input("Model Name", key=persist("model_name"))
181
  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'))
182
  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 lanuage is used in the dataset. For instance, if the dataset's labels are in english, you should select English here.", key=persist("languages"))
 
191
  st.text_input("Related GitHub Repository", help="Link to a GitHub repository used in the development of this model", key=persist("github_url"))
192
  st.text_area("Bibtex Citation", help="Bibtex citations for related work", key=persist("bibtex_citations"))
193
  st.text_input("Carbon Emitted:", help="You can estimate carbon emissions using the [Machine Learning Impact calculator](https://mlco2.github.io/impact#compute) presented in [Lacoste et al. (2019)](https://arxiv.org/abs/1910.09700)", key=persist("Model_c02_emitted"))
194
+
195
  # warnings setting
196
  languages=st.session_state.languages or None
197
  license=st.session_state.license or None
pages/2_πŸ“œ_Model_Details.py CHANGED
@@ -31,38 +31,50 @@ def get_cached_data():
31
 
32
  def cs_body():
33
  license_map= get_cached_data()
 
 
 
 
34
  #st.set_page_config(layout="wide") ## not yet supported on the hub
35
  st.markdown('## Model Details')
36
  st.markdown('### Model Description')
37
  st.text_area("Provide a 1-2 sentence summary of what this model is.", 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'))
38
 
39
- left, right = st.columns([2,6])
40
-
41
- with left:
42
- st.write("\n")
43
- st.write("\n")
44
- st.markdown('### Developed By:')
45
- st.write("\n")
46
- st.write("\n")
47
- #st.write("\n")
48
- st.markdown('### Shared By [optional]:')
49
- st.write("\n")
50
- st.write("\n")
51
- st.markdown('### Model Type:')
52
- st.write("\n")
53
- st.write("\n")
54
- st.markdown('### License:')
55
- with right:
56
- st.write("\n")
57
- st.write("\n")
58
- st.text_input("",help="Developed By work", key=persist("Model_developers"))
59
- st.write("\n")
60
- st.write("\n")
61
-
62
- st.text_input("",help="Shared By work",key=persist("shared_by"))
63
- st.text_input("",help="Model Type work")
64
- #st.write("\n")
65
- st.selectbox("",[""] + list(license_map.values()), help="Licenses work", key=persist("license"))
 
 
 
 
 
 
 
 
66
 
67
  def main():
68
  cs_body()
 
31
 
32
  def cs_body():
33
  license_map= get_cached_data()
34
+ Supervision_learning_method_list = ["Unsupervised","Semi-supervised","Self-supervised","Supervised"]
35
+ Machine_Learning_Type_list = ["Neural Network","SVM","Decision Trees","Reinforcement Learning"]
36
+ Modality_List = ["Computer Vision","Natural Language Processing","Audio","Speech","Multimodal","Tabular"]
37
+
38
  #st.set_page_config(layout="wide") ## not yet supported on the hub
39
  st.markdown('## Model Details')
40
  st.markdown('### Model Description')
41
  st.text_area("Provide a 1-2 sentence summary of what this model is.", 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'))
42
 
43
+ left, right = st.columns([4,6])
44
+ sub_col1, sub_col2, sub_col3 = st.columns(3)
45
+ with st.container():
46
+ with left:
47
+ st.write("\n")
48
+ st.write("\n")
49
+ st.markdown('### Developed By:')
50
+ st.write("\n")
51
+ st.write("\n")
52
+ st.write("\n")
53
+ st.markdown('### Shared By [optional]:')
54
+ st.write("\n")
55
+ st.write("\n")
56
+ st.write("\n")
57
+ st.markdown('### License:')
58
+ st.write("\n")
59
+
60
+ st.markdown('### Model Type:')
61
+
62
+ with right:
63
+ st.text_input("",help="Developed By work", key=persist("Model_developers"))
64
+ st.write("\n")
65
+ st.text_input("",help="Shared By work",key=persist("shared_by"))
66
+ st.write("\n")
67
+ st.selectbox("",[""] + list(license_map.values()), help="Licenses work", key=persist("license"))
68
+
69
+ with st.container():
70
+
71
+ with sub_col1:
72
+ st.multiselect(" Supervision/Learning Method", [""]+ Supervision_learning_method_list, key=persist("Supervision_learning_method"))
73
+ with sub_col2:
74
+ st.multiselect("Machine Learning Type",[""]+Machine_Learning_Type_list, key=persist("Machine_Learning_Type"))
75
+ with sub_col3:
76
+ st.multiselect("Modality",[""]+Modality_List, key=persist("Modality"))
77
+
78
 
79
  def main():
80
  cs_body()