Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ from pathlib import Path
|
|
6 |
|
7 |
# Set page configuration
|
8 |
st.set_page_config(
|
9 |
-
page_title="Interactive Quiz App",
|
10 |
page_icon="π"
|
11 |
)
|
12 |
|
@@ -78,7 +78,7 @@ def show_landing_page(subjects):
|
|
78 |
if st.button(subject, key=f"subject_{idx}"):
|
79 |
st.session_state.selected_subject = subject
|
80 |
st.session_state.page = 'subject'
|
81 |
-
st.
|
82 |
|
83 |
# Practice mode
|
84 |
def practice_mode(questions, selected_week=None):
|
@@ -200,7 +200,7 @@ def show_subject_page(subject, questions):
|
|
200 |
with st.sidebar:
|
201 |
if st.button("Home"):
|
202 |
st.session_state.page = 'landing'
|
203 |
-
st.
|
204 |
|
205 |
# Mode selection
|
206 |
mode = st.radio(
|
|
|
6 |
|
7 |
# Set page configuration
|
8 |
st.set_page_config(
|
9 |
+
page_title="Prepit: Interactive Quiz App",
|
10 |
page_icon="π"
|
11 |
)
|
12 |
|
|
|
78 |
if st.button(subject, key=f"subject_{idx}"):
|
79 |
st.session_state.selected_subject = subject
|
80 |
st.session_state.page = 'subject'
|
81 |
+
st.rerun()
|
82 |
|
83 |
# Practice mode
|
84 |
def practice_mode(questions, selected_week=None):
|
|
|
200 |
with st.sidebar:
|
201 |
if st.button("Home"):
|
202 |
st.session_state.page = 'landing'
|
203 |
+
st.rerun()
|
204 |
|
205 |
# Mode selection
|
206 |
mode = st.radio(
|