Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
import pandas as pd
|
| 3 |
|
|
@@ -11,8 +12,8 @@ acontainer1 = st.empty()
|
|
| 11 |
acontainer2 = st.empty()
|
| 12 |
acontainer3 = st.empty()
|
| 13 |
|
| 14 |
-
def asubmit(
|
| 15 |
-
acontainer.write((" {} ").format(aselected))
|
| 16 |
|
| 17 |
adf = pd.DataFrame(
|
| 18 |
astations,
|
|
@@ -23,4 +24,4 @@ aoption = acontainer1.selectbox(
|
|
| 23 |
adf['atitle']
|
| 24 |
)
|
| 25 |
if acontainer2.button("Submit",on_click=asubmit) == True:
|
| 26 |
-
asubmit({"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,})
|
|
|
|
| 1 |
+
|
| 2 |
import streamlit as st
|
| 3 |
import pandas as pd
|
| 4 |
|
|
|
|
| 12 |
acontainer2 = st.empty()
|
| 13 |
acontainer3 = st.empty()
|
| 14 |
|
| 15 |
+
def asubmit(aparam):
|
| 16 |
+
aparam["acontainer"].write((" {} ").format(aparam["aselected"]))
|
| 17 |
|
| 18 |
adf = pd.DataFrame(
|
| 19 |
astations,
|
|
|
|
| 24 |
adf['atitle']
|
| 25 |
)
|
| 26 |
if acontainer2.button("Submit",on_click=asubmit) == True:
|
| 27 |
+
asubmit({"aselected":aoption,"acontainer":acontainer3,"adataframe":adf,})
|