import streamlit.st if st.button("Save"): with open("my_file.txt", "w") as file_out: file_out.write("test_passed")