a10 commited on
Commit
aadf0ce
·
1 Parent(s): 6f24fe3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -11,7 +11,7 @@ astationcolumns = ['akey','astationcode','alatitude','alongitude','atitle',]
11
  acontainer1 = st.empty()
12
  acontainer2 = st.empty()
13
 
14
- def aoptionchange(aparam):
15
  acontainer2.write(aparam)
16
  adf = pd.DataFrame(
17
  astations,
@@ -19,8 +19,7 @@ adf = pd.DataFrame(
19
  )
20
  aoption = acontainer1.selectbox(
21
  'Which station?',
22
- adf['atitle'],
23
- on_change=aoptionchange,
24
- args={'aselected':aoption,}
25
  )
26
- #acontainer2.write(aoption)
 
 
11
  acontainer1 = st.empty()
12
  acontainer2 = st.empty()
13
 
14
+ def asubmit(aparam):
15
  acontainer2.write(aparam)
16
  adf = pd.DataFrame(
17
  astations,
 
19
  )
20
  aoption = acontainer1.selectbox(
21
  'Which station?',
22
+ adf['atitle']
 
 
23
  )
24
+ acontainer1.button("Submit",on_click=asubmit,args={'aselected':aoption,})
25
+ #acontainer2.write(aoption)