Sina Media Lab
commited on
Commit
·
fcee975
1
Parent(s):
c1018ca
Updates
Browse files
app.py
CHANGED
|
@@ -166,11 +166,12 @@ st.sidebar.markdown(
|
|
| 166 |
</div>
|
| 167 |
""", unsafe_allow_html=True)
|
| 168 |
|
| 169 |
-
#
|
| 170 |
-
category_description = modules[selected_category]["description"]
|
| 171 |
-
|
| 172 |
st.sidebar.title("Quiz Categories")
|
| 173 |
-
selected_category = st.sidebar.selectbox("Choose a category:", list(modules.keys())
|
|
|
|
|
|
|
|
|
|
| 174 |
|
| 175 |
if selected_category:
|
| 176 |
module_options = [modules[selected_category][module]["title"] for module in modules[selected_category]]
|
|
|
|
| 166 |
</div>
|
| 167 |
""", unsafe_allow_html=True)
|
| 168 |
|
| 169 |
+
# Sidebar content
|
|
|
|
|
|
|
| 170 |
st.sidebar.title("Quiz Categories")
|
| 171 |
+
selected_category = st.sidebar.selectbox("Choose a category:", list(modules.keys()))
|
| 172 |
+
|
| 173 |
+
# Get category description for tooltip
|
| 174 |
+
category_description = modules[selected_category]["description"] if selected_category else ""
|
| 175 |
|
| 176 |
if selected_category:
|
| 177 |
module_options = [modules[selected_category][module]["title"] for module in modules[selected_category]]
|