Imarticuslearning commited on
Commit
5ef99d9
·
verified ·
1 Parent(s): b87eee5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
app.py CHANGED
@@ -880,6 +880,19 @@ if st.session_state["generated_questions"]:
880
  st.success("✅ Audio uploaded. You may now confirm your answer.")
881
  st.audio(wav_path, format="audio/wav")
882
 
 
 
 
 
 
 
 
 
 
 
 
 
 
883
  if elapsed > 15 and "response_file" not in st.session_state:
884
  st.warning("⚠️ No audio captured. Moving to next question.")
885
  st.session_state["answers"].append({
 
880
  st.success("✅ Audio uploaded. You may now confirm your answer.")
881
  st.audio(wav_path, format="audio/wav")
882
 
883
+ if st.button("⏹️ Confirm & Next"):
884
+ st.session_state["answers"].append({
885
+ "question": question,
886
+ "response_file": st.session_state["response_file"]
887
+ })
888
+
889
+ if st.session_state["current_question_index"] == len(st.session_state["generated_questions"]):
890
+ evaluate_answers()
891
+ st.session_state["show_summary"] = True
892
+ st.rerun()
893
+
894
+
895
+
896
  if elapsed > 15 and "response_file" not in st.session_state:
897
  st.warning("⚠️ No audio captured. Moving to next question.")
898
  st.session_state["answers"].append({