atz21 commited on
Commit
5084988
·
verified ·
1 Parent(s): 9b0a372

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -745,7 +745,7 @@ def align_and_grade_pipeline(qp_path, ms_path, ans_path, imprint=False):
745
  extracted_ids = ["NA"]
746
 
747
  print("1.ii) Building AS transcription prompt with expected question IDs and graph detection, sending to Gemini...")
748
- as_prompt = build_as_prompt_with_expected_ids(extracted_ids, qpms_text) + "\nAt the end, also list all answers where a graph is found, in the format:\nGraph found in:\n- Answer <number> → Page <number>\n(One per line, after all answers)"
749
  as_text = gemini_generate_content(as_prompt, file_upload_obj=ans_uploaded)
750
  print("📝 AS transcription received. Saving debug file: debug_as_transcript.txt")
751
  with open("debug_as_transcript.txt", "w", encoding="utf-8") as f:
 
745
  extracted_ids = ["NA"]
746
 
747
  print("1.ii) Building AS transcription prompt with expected question IDs and graph detection, sending to Gemini...")
748
+ as_prompt = build_as_cot_prompt_with_expected_ids(extracted_ids, qpms_text) + "\nAt the end, also list all answers where a graph is found, in the format:\nGraph found in:\n- Answer <number> → Page <number>\n(One per line, after all answers)"
749
  as_text = gemini_generate_content(as_prompt, file_upload_obj=ans_uploaded)
750
  print("📝 AS transcription received. Saving debug file: debug_as_transcript.txt")
751
  with open("debug_as_transcript.txt", "w", encoding="utf-8") as f: