a10 commited on
Commit
835184e
·
1 Parent(s): 08a067b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  import pandas as pd
3
 
@@ -11,8 +12,8 @@ acontainer1 = st.empty()
11
  acontainer2 = st.empty()
12
  acontainer3 = st.write("TEST")
13
 
14
- def asubmit(aselected=""):
15
- acontainer3.write((" {} ").format(aselected))
16
 
17
  adf = pd.DataFrame(
18
  astations,
@@ -22,4 +23,4 @@ aoption = acontainer1.selectbox(
22
  'Which station?',
23
  adf['atitle']
24
  )
25
- acontainer2.button("Submit",on_click=asubmit,kwargs=dict(aselected="TEST2"))
 
1
+
2
  import streamlit as st
3
  import pandas as pd
4
 
 
12
  acontainer2 = st.empty()
13
  acontainer3 = st.write("TEST")
14
 
15
+ def asubmit(aselected="",acontainer=None,):
16
+ acontainer.write((" {} ").format("TEST3"))
17
 
18
  adf = pd.DataFrame(
19
  astations,
 
23
  'Which station?',
24
  adf['atitle']
25
  )
26
+ acontainer2.button("Submit",on_click=asubmit,kwargs=dict(aselected="TEST2",acontainer=acontainer3))