Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1449,9 +1449,10 @@ class EnhancedVectorSystem:
|
|
| 1449 |
|
| 1450 |
self.reference_summary = reference_text.strip()
|
| 1451 |
return f"✅ Reference answer set ({len(self.reference_summary)} chars). Will be used to calibrate grading."
|
|
|
|
| 1452 |
|
| 1453 |
# def process_query(self, question, student_answer, max_marks, enable_ensemble=True):
|
| 1454 |
-
def process_query(self, question, student_answer, max_marks):
|
| 1455 |
"""
|
| 1456 |
Enhanced grading pipeline with multi-stage processing.
|
| 1457 |
"""
|
|
@@ -1613,9 +1614,15 @@ with gr.Blocks(title="EduGenius AI Grader - Enhanced", theme=gr.themes.Soft()) a
|
|
| 1613 |
# outputs=[evidence_box, grade_box]
|
| 1614 |
# )
|
| 1615 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1616 |
run_btn.click(
|
| 1617 |
system.process_query,
|
| 1618 |
-
inputs=[q_input, a_input, max_marks],
|
| 1619 |
outputs=[evidence_box, grade_box]
|
| 1620 |
)
|
| 1621 |
|
|
|
|
| 1449 |
|
| 1450 |
self.reference_summary = reference_text.strip()
|
| 1451 |
return f"✅ Reference answer set ({len(self.reference_summary)} chars). Will be used to calibrate grading."
|
| 1452 |
+
|
| 1453 |
|
| 1454 |
# def process_query(self, question, student_answer, max_marks, enable_ensemble=True):
|
| 1455 |
+
def process_query(self, question, student_answer, max_marks, enable_ensemble=False):
|
| 1456 |
"""
|
| 1457 |
Enhanced grading pipeline with multi-stage processing.
|
| 1458 |
"""
|
|
|
|
| 1614 |
# outputs=[evidence_box, grade_box]
|
| 1615 |
# )
|
| 1616 |
|
| 1617 |
+
# run_btn.click(
|
| 1618 |
+
# system.process_query,
|
| 1619 |
+
# inputs=[q_input, a_input, max_marks], # Removed ensemble_check
|
| 1620 |
+
# outputs=[evidence_box, grade_box]
|
| 1621 |
+
# )
|
| 1622 |
+
|
| 1623 |
run_btn.click(
|
| 1624 |
system.process_query,
|
| 1625 |
+
inputs=[q_input, a_input, max_marks, ensemble_check], # Pass all 4
|
| 1626 |
outputs=[evidence_box, grade_box]
|
| 1627 |
)
|
| 1628 |
|