diff --git a/app.py b/app.py index e880387..c165daa 100644 --- a/app.py +++ b/app.py @@ -64,11 +64,9 @@ with st.form("answer_form"): # Display the correct answer if st.form_submit_button(label="VĂ©rifier") and ss.selected_answer != "---": check_answer() -# Reset button to load a new question -if st.button("Question suivante"): - ss.selected_answer = "---" - select_question() - + if st.form_submit_button(label="Prochaine question"): + ss.clear() + select_question() # Pied de page footer_content = Path("donnees/footer.md").read_text() st.markdown(footer_content, unsafe_allow_html=True)