Spaces:
Running
Running
Update app.py
#93
by Muthuraja18 - opened
app.py
CHANGED
|
@@ -964,7 +964,7 @@ def play_page():
|
|
| 964 |
st.subheader(f"Question {idx+1}/{len(questions)}")
|
| 965 |
st.write(q["question"])
|
| 966 |
|
| 967 |
-
|
| 968 |
time_limit = 15
|
| 969 |
st.markdown(f"**Time left:** {max(0, time_limit - elapsed)} seconds")
|
| 970 |
|
|
|
|
| 964 |
st.subheader(f"Question {idx+1}/{len(questions)}")
|
| 965 |
st.write(q["question"])
|
| 966 |
|
| 967 |
+
elapsed = int(time.time() - st.session_state.get('question_started_at', time.time()))
|
| 968 |
time_limit = 15
|
| 969 |
st.markdown(f"**Time left:** {max(0, time_limit - elapsed)} seconds")
|
| 970 |
|