davidmezzetti commited on
Commit
9cfba5d
1 Parent(s): 05892bc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -409,8 +409,8 @@ class Application:
409
  default = self.setting(config, name, default)
410
 
411
  st.caption(label)
412
- st.code(default=="True", language="yaml")
413
- return default == "True"
414
 
415
  def select(self, label, component, config, name, options, default=0):
416
  """
@@ -694,6 +694,8 @@ class Application:
694
  # Generate export button after workflow is complete
695
  _, config = self.yaml(components)
696
  st.download_button("Export", config, file_name="workflow.yml", help="Export the API workflow as YAML")
 
 
697
 
698
 
699
  if __name__ == "__main__":
 
409
  default = self.setting(config, name, default)
410
 
411
  st.caption(label)
412
+ st.markdown(":white_check_mark:" if default else ":white_large_square:")
413
+ return default
414
 
415
  def select(self, label, component, config, name, options, default=0):
416
  """
 
694
  # Generate export button after workflow is complete
695
  _, config = self.yaml(components)
696
  st.download_button("Export", config, file_name="workflow.yml", help="Export the API workflow as YAML")
697
+ else:
698
+ st.info(":arrow_left: Select a workflow from the sidebar")
699
 
700
 
701
  if __name__ == "__main__":