Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ acontainer1 = st.empty()
|
|
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,4 +25,4 @@ aoption = acontainer1.selectbox(
|
|
25 |
'Which station?',
|
26 |
adf['atitle']
|
27 |
)
|
28 |
-
acontainer2.button("Submit",on_click=asubmit,
|
|
|
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))
|