EdBoy2202 commited on
Commit
2428246
·
verified ·
1 Parent(s): 56f04a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -42,9 +42,6 @@ def quiz_app():
42
  st.title("Interactive Multiple Choice Quiz Generator")
43
  st.markdown(f"Powered by {st.session_state.selected_api}")
44
 
45
- # Security Warning - Moved here as it is part of the quiz app
46
- st.markdown("<font color='red'>**Warning:** Directly entering your API key is less secure than using Streamlit Secrets or environment variables. For production, use Secrets.</font>", unsafe_allow_html=True)
47
-
48
  # Initialize session state for quiz data and progress (if not already initialized during login)
49
  if 'quiz_data' not in st.session_state:
50
  st.session_state.quiz_data = None
@@ -200,6 +197,7 @@ def quiz_app():
200
  color = "red"
201
  st.markdown(f"<font color='{color}'>{result_text}</font>", unsafe_allow_html=True)
202
 
 
203
  percentage_correct = (correct_count / len(st.session_state.quiz_data)) * 100
204
  st.markdown(f"### Final Score: {correct_count} out of {len(st.session_state.quiz_data)} correct ({percentage_correct:.2f}%)")
205
  st.session_state.score = correct_count # Store score in session state
 
42
  st.title("Interactive Multiple Choice Quiz Generator")
43
  st.markdown(f"Powered by {st.session_state.selected_api}")
44
 
 
 
 
45
  # Initialize session state for quiz data and progress (if not already initialized during login)
46
  if 'quiz_data' not in st.session_state:
47
  st.session_state.quiz_data = None
 
197
  color = "red"
198
  st.markdown(f"<font color='{color}'>{result_text}</font>", unsafe_allow_html=True)
199
 
200
+ st.divider()
201
  percentage_correct = (correct_count / len(st.session_state.quiz_data)) * 100
202
  st.markdown(f"### Final Score: {correct_count} out of {len(st.session_state.quiz_data)} correct ({percentage_correct:.2f}%)")
203
  st.session_state.score = correct_count # Store score in session state