Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,9 @@ def handle_submission():
|
|
97 |
#st.button("Ask Again
|
98 |
#st.button("Ask Again", key="ask_again_btn")
|
99 |
|
100 |
-
|
|
|
|
|
101 |
|
102 |
# Define a callback function to handle the button click
|
103 |
def ask_again():
|
|
|
97 |
#st.button("Ask Again
|
98 |
#st.button("Ask Again", key="ask_again_btn")
|
99 |
|
100 |
+
# Add the callback function to the Streamlit app
|
101 |
+
submit_button = st.button("Submit", on_click=handle_submission)
|
102 |
+
#st.button("Ask Again")(handle_submission)
|
103 |
|
104 |
# Define a callback function to handle the button click
|
105 |
def ask_again():
|