Spaces:
Sleeping
Sleeping
Update tools/FinalAnswerTool.py
Browse files- tools/FinalAnswerTool.py +1 -1
tools/FinalAnswerTool.py
CHANGED
|
@@ -18,7 +18,7 @@ class FinalAnswerTool(Tool):
|
|
| 18 |
|
| 19 |
def forward(self, answer: str) -> str:
|
| 20 |
if answer is None:
|
| 21 |
-
|
| 22 |
|
| 23 |
answer = str(answer)
|
| 24 |
match = re.search(r'boxed\{([^}]+)\}', answer)
|
|
|
|
| 18 |
|
| 19 |
def forward(self, answer: str) -> str:
|
| 20 |
if answer is None:
|
| 21 |
+
return "NA"
|
| 22 |
|
| 23 |
answer = str(answer)
|
| 24 |
match = re.search(r'boxed\{([^}]+)\}', answer)
|