qqubb commited on
Commit
520cba6
·
1 Parent(s): f1b7abd

add none to selection list

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -23,6 +23,7 @@ def load_yaml_files_from_directory(directory_path):
23
  return yaml_files
24
 
25
  directories = {
 
26
  'Template': './examples/templates',
27
  'Example Project ': './examples/example1'
28
  }
@@ -116,8 +117,8 @@ with project_col:
116
  file_name="updated_project.yaml",
117
  mime="text/yaml"
118
  )
119
- # else:
120
- # st.write("Missing project file")
121
 
122
  with data_col:
123
 
@@ -156,8 +157,8 @@ with data_col:
156
  file_name="updated_data.yaml",
157
  mime="text/yaml"
158
  )
159
- # else:
160
- # st.write("Missing data file")
161
 
162
  with model_col:
163
 
@@ -196,8 +197,8 @@ with model_col:
196
  file_name="updated_model.yaml",
197
  mime="text/yaml"
198
  )
199
- # else:
200
- # st.write("Missing data file")
201
 
202
  # # # # json_data = json.dumps(data, indent=2)
203
  # # # # st.download_button(
 
23
  return yaml_files
24
 
25
  directories = {
26
+ 'None': './examples',
27
  'Template': './examples/templates',
28
  'Example Project ': './examples/example1'
29
  }
 
117
  file_name="updated_project.yaml",
118
  mime="text/yaml"
119
  )
120
+ else:
121
+ st.write("Missing project file")
122
 
123
  with data_col:
124
 
 
157
  file_name="updated_data.yaml",
158
  mime="text/yaml"
159
  )
160
+ else:
161
+ st.write("Missing data file")
162
 
163
  with model_col:
164
 
 
197
  file_name="updated_model.yaml",
198
  mime="text/yaml"
199
  )
200
+ else:
201
+ st.write("Missing data file")
202
 
203
  # # # # json_data = json.dumps(data, indent=2)
204
  # # # # st.download_button(