Sina Media Lab commited on
Commit
320fd5e
·
1 Parent(s): f0a1b24
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -159,11 +159,6 @@ with col2:
159
  mime="application/pdf"
160
  )
161
 
162
- # Update the clock every second
163
- while True:
164
- clock_placeholder.markdown(f"⏱️ {int(time.time() - st.session_state.start_time)} seconds")
165
- time.sleep(1)
166
-
167
  # Display the current question with larger font
168
  st.markdown(f"<span style='font-size: 18px;'><b>Q{st.session_state.current_index + 1}: {current_question['question']}</b></span>", unsafe_allow_html=True)
169
 
@@ -179,6 +174,9 @@ with st.form(key=f'question_form_{st.session_state.current_index}'):
179
 
180
  submit_button = st.form_submit_button(label="Submit/New")
181
 
 
 
 
182
  # Handle button state and answer submission
183
  if submit_button:
184
  if selected_answer is None:
 
159
  mime="application/pdf"
160
  )
161
 
 
 
 
 
 
162
  # Display the current question with larger font
163
  st.markdown(f"<span style='font-size: 18px;'><b>Q{st.session_state.current_index + 1}: {current_question['question']}</b></span>", unsafe_allow_html=True)
164
 
 
174
 
175
  submit_button = st.form_submit_button(label="Submit/New")
176
 
177
+ # Update the clock every second
178
+ clock_placeholder.markdown(f"⏱️ {int(time.time() - st.session_state.start_time)} seconds")
179
+
180
  # Handle button state and answer submission
181
  if submit_button:
182
  if selected_answer is None: