Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ astationcolumns = ['akey','astationcode','alatitude','alongitude','atitle',]
|
|
11 |
acontainer1 = st.empty()
|
12 |
acontainer2 = st.empty()
|
13 |
|
14 |
-
def
|
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 |
-
|
|
|
|
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)
|