-1

I have

b0 = st.button("Hi There", key=0)
        if b0:
            st.write("gratitude word")

is it possible to save the output of clicking b0? so basically saving the "gratitude word" as CSV, named something like file_one.csv

アルサ
  • 53
  • 5

1 Answers1

0
b0 = st.button("Hi There", key=0)
    if b0:
        st.write("gratitude word")
        with open("file.csv", "w") as f:
            print("xxx", file=f)

does the job.

AsukaMinato
  • 1,017
  • 12
  • 21