Kackle commited on
Commit
349cf50
·
verified ·
1 Parent(s): ed3eccd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -137,7 +137,7 @@ class AnswerValidator(Tool):
137
  self.inputs = {"question": {"type": "string", "description": "The question"}, "answer": {"type": "string", "description": "The answer to validate"}}
138
  self.output_type = "string"
139
 
140
- def validate_answer(self, question: str, answer: str) -> str:
141
  """Check if answer is reasonable for the question"""
142
  q_lower = question.lower()
143
  a_lower = answer.lower()
 
137
  self.inputs = {"question": {"type": "string", "description": "The question"}, "answer": {"type": "string", "description": "The answer to validate"}}
138
  self.output_type = "string"
139
 
140
+ def forward(self, question: str, answer: str) -> str:
141
  """Check if answer is reasonable for the question"""
142
  q_lower = question.lower()
143
  a_lower = answer.lower()