a10 commited on
Commit
3e45eab
·
1 Parent(s): 3107a69

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -12,7 +12,7 @@ acontainer1 = st.empty()
12
  acontainer2 = st.empty()
13
  acontainer3 = st.empty()
14
 
15
- def asubmit(aselected,adataframe,adummy):
16
  acontainer3.write("TEST ")
17
  # adf2 = aparam[0]["adataframe"]
18
  # astationcode = adf2.loc[adf2["atitle"]==aparam[0]["aselected"]]['astationcode']
@@ -25,4 +25,4 @@ aoption = acontainer1.selectbox(
25
  'Which station?',
26
  adf['atitle']
27
  )
28
- acontainer2.button("Submit",on_click=asubmit,args=(None,),kwargs=dict(aselected=aoption,adataframe=adf,adummy=None))
 
12
  acontainer2 = st.empty()
13
  acontainer3 = st.empty()
14
 
15
+ def asubmit(aselected=""):
16
  acontainer3.write("TEST ")
17
  # adf2 = aparam[0]["adataframe"]
18
  # astationcode = adf2.loc[adf2["atitle"]==aparam[0]["aselected"]]['astationcode']
 
25
  'Which station?',
26
  adf['atitle']
27
  )
28
+ acontainer2.button("Submit",on_click=asubmit,kwargs=dict(aselected=aoption))