Spaces:
Running
Running
Update mcq_test.py
Browse files- mcq_test.py +1 -1
mcq_test.py
CHANGED
@@ -104,7 +104,7 @@ def main():
|
|
104 |
answer = st.radio(
|
105 |
"Select your answer:",
|
106 |
options=['A', 'B', 'C', 'D'], # List of option keys
|
107 |
-
format_func=lambda x: f"{x}) {current_q['options'].get(x, '
|
108 |
key=f"question_{st.session_state.current_question}" # Unique key per question
|
109 |
)
|
110 |
|
|
|
104 |
answer = st.radio(
|
105 |
"Select your answer:",
|
106 |
options=['A', 'B', 'C', 'D'], # List of option keys
|
107 |
+
format_func=lambda x: f"{x}) {current_q['options'].get(x, ' ')}",
|
108 |
key=f"question_{st.session_state.current_question}" # Unique key per question
|
109 |
)
|
110 |
|