Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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()
|