joshuarauh commited on
Commit
022800b
·
verified ·
1 Parent(s): 1816322

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -473,7 +473,7 @@ The computation question MAY NOT:
473
  return problem_type_additions.get(question_type, "")
474
 
475
  def generate_question(subject, difficulty, question_type):
476
- """Generate a single math question with additional verification for difficulty 5"""
477
  try:
478
  if not os.environ.get('ANTHROPIC_API_KEY'):
479
  logger.error("Anthropic API key not found")
@@ -673,6 +673,8 @@ def check_and_resolve_discrepancy(initial_response, sympy_output):
673
 
674
  If the SymPy Verification answer is consistent with the final answer Original solution,
675
  then please say that they are consistent and briefly explain why.
 
 
676
 
677
  If the two answers are inconsistent with each other then please:
678
  1. Identify which solution is correct
 
473
  return problem_type_additions.get(question_type, "")
474
 
475
  def generate_question(subject, difficulty, question_type):
476
+ """Generate a single math question with additional verification"""
477
  try:
478
  if not os.environ.get('ANTHROPIC_API_KEY'):
479
  logger.error("Anthropic API key not found")
 
673
 
674
  If the SymPy Verification answer is consistent with the final answer Original solution,
675
  then please say that they are consistent and briefly explain why.
676
+ Note that you may use numerical analysis to check whether the two answers are consistent,
677
+ and it may be the case that the two answers evaluate to the same expression or number.
678
 
679
  If the two answers are inconsistent with each other then please:
680
  1. Identify which solution is correct