czyoung commited on
Commit
982d1da
·
verified ·
1 Parent(s): a26a531

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -465,10 +465,22 @@ with t1:
465
  f,
466
  'sonogram-test.txt',
467
  key='download-txt',
 
468
  )
469
  with c2t1:
470
  st.write("Left Right")
471
  st.button("There")
 
 
 
 
 
 
 
 
 
 
 
472
 
473
  currFile = st.sidebar.selectbox('Current File', file_names,on_change=updateMultiSelect,key="select_currFile")
474
 
 
465
  f,
466
  'sonogram-test.txt',
467
  key='download-txt',
468
+ on_click="ignore"
469
  )
470
  with c2t1:
471
  st.write("Left Right")
472
  st.button("There")
473
+ f = open("test2.txt",'w+')
474
+ f.write("Hello there")
475
+ f.close()
476
+ with open("test2.txt") as f:
477
+ st.download_button(
478
+ "Save As PDF",
479
+ f,
480
+ 'sonogram-test2.txt',
481
+ key='download-txt',
482
+ on_click="ignore"
483
+ )
484
 
485
  currFile = st.sidebar.selectbox('Current File', file_names,on_change=updateMultiSelect,key="select_currFile")
486