Sina Media Lab
commited on
Commit
·
ad8f626
1
Parent(s):
bacb566
Updates
Browse files- app.py +6 -3
- modules/counting/config.py +2 -1
- modules/numbering_system/config.py +2 -1
app.py
CHANGED
@@ -42,7 +42,7 @@ def generate_pdf_report():
|
|
42 |
pdf.ln(5)
|
43 |
|
44 |
# Load the image from the local directory, scaled down
|
45 |
-
pdf.image("assets/gt.png", x=
|
46 |
pdf.ln(10)
|
47 |
|
48 |
for i, entry in enumerate(st.session_state.questions):
|
@@ -153,8 +153,8 @@ st.sidebar.markdown(
|
|
153 |
<h1 style='margin: 0;'>🪄 Magic Math Quiz!</h1>
|
154 |
""", unsafe_allow_html=True)
|
155 |
|
156 |
-
# Display the local image using st.image
|
157 |
-
st.sidebar.image("assets/gt.png", use_column_width=True,
|
158 |
|
159 |
st.sidebar.title("Quiz Categories")
|
160 |
selected_category = st.sidebar.selectbox("Choose a category:", list(modules.keys()))
|
@@ -277,3 +277,6 @@ if submit_button:
|
|
277 |
disabled=False,
|
278 |
key="pdf_download_button_updated"
|
279 |
)
|
|
|
|
|
|
|
|
42 |
pdf.ln(5)
|
43 |
|
44 |
# Load the image from the local directory, scaled down
|
45 |
+
pdf.image("assets/gt.png", x=80, w=25, link="https://ghassem.com") # Adjusted the size to half
|
46 |
pdf.ln(10)
|
47 |
|
48 |
for i, entry in enumerate(st.session_state.questions):
|
|
|
153 |
<h1 style='margin: 0;'>🪄 Magic Math Quiz!</h1>
|
154 |
""", unsafe_allow_html=True)
|
155 |
|
156 |
+
# Display the local image using st.image, scaled down
|
157 |
+
st.sidebar.image("assets/gt.png", use_column_width=True, width=100) # Adjusted to half its size
|
158 |
|
159 |
st.sidebar.title("Quiz Categories")
|
160 |
selected_category = st.sidebar.selectbox("Choose a category:", list(modules.keys()))
|
|
|
277 |
disabled=False,
|
278 |
key="pdf_download_button_updated"
|
279 |
)
|
280 |
+
|
281 |
+
# Generate a new question for the next round
|
282 |
+
st.session_state.current_question = generate_new_question(selected_category, selected_module, selected_module_data)
|
modules/counting/config.py
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
title = "Counting"
|
2 |
-
description = "This category covers various operations and concepts in different counting concept."
|
|
|
|
1 |
title = "Counting"
|
2 |
+
description = "This category covers various operations and concepts in different counting concept."
|
3 |
+
order = 20
|
modules/numbering_system/config.py
CHANGED
@@ -1,2 +1,3 @@
|
|
1 |
title = "Numbering System"
|
2 |
-
description = "This category covers various operations and concepts in different numbering systems, including binary, octal, decimal, and hexadecimal."
|
|
|
|
1 |
title = "Numbering System"
|
2 |
+
description = "This category covers various operations and concepts in different numbering systems, including binary, octal, decimal, and hexadecimal."
|
3 |
+
order=10
|