Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,11 +10,15 @@ astations = [
|
|
10 |
acontainer1 = st.empty()
|
11 |
acontainer2 = st.empty()
|
12 |
|
|
|
|
|
13 |
adf = pd.DataFrame(
|
14 |
astations,
|
15 |
columns=['akey','astationcode','alatitude','alongitude','atitle',]
|
16 |
)
|
17 |
aoption = acontainer1.selectbox(
|
18 |
-
|
19 |
-
|
20 |
-
|
|
|
|
|
|
10 |
acontainer1 = st.empty()
|
11 |
acontainer2 = st.empty()
|
12 |
|
13 |
+
def aoptionchange(aparam):
|
14 |
+
acontainer2.write(aparam)
|
15 |
adf = pd.DataFrame(
|
16 |
astations,
|
17 |
columns=['akey','astationcode','alatitude','alongitude','atitle',]
|
18 |
)
|
19 |
aoption = acontainer1.selectbox(
|
20 |
+
'Which station?',
|
21 |
+
adf['atitle'],
|
22 |
+
on_change=aoptionchange
|
23 |
+
)
|
24 |
+
#acontainer2.write(aoption)
|