Sasidhar commited on
Commit
992b91f
·
1 Parent(s): 4c88397

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -6
app.py CHANGED
@@ -42,12 +42,9 @@ if st.button("Run Workflow"):
42
 
43
  with open("workflow_config.yaml", "w") as yaml_file:
44
  yaml.dump(workflow_config, yaml_file)
45
- st.download_button(
46
- label="Export Config",
47
- data=yaml_file,
48
- file_name='Workflow_Config.yaml',
49
- mime='yaml',
50
- )
51
 
52
  # if st.download_button("Export Workflow"):
53
  # if export_format == "YAML":
 
42
 
43
  with open("workflow_config.yaml", "w") as yaml_file:
44
  yaml.dump(workflow_config, yaml_file)
45
+
46
+ with open("workflow_config.yaml", "w") as yaml_file:
47
+ st.download_button(label="Export Config",yaml_file)
 
 
 
48
 
49
  # if st.download_button("Export Workflow"):
50
  # if export_format == "YAML":