Spaces:
Running
Running
cyberosa
commited on
Commit
·
bfabe80
1
Parent(s):
3c9e5cf
Fixing the tool
Browse files- tools/final_answer.py +2 -2
tools/final_answer.py
CHANGED
@@ -13,8 +13,8 @@ class FinalAnswerTool(Tool):
|
|
13 |
}
|
14 |
output_type = "any"
|
15 |
|
16 |
-
def forward(self,
|
17 |
-
return
|
18 |
|
19 |
def __init__(self, *args, **kwargs):
|
20 |
self.is_initialized = False
|
|
|
13 |
}
|
14 |
output_type = "any"
|
15 |
|
16 |
+
def forward(self, final_answer: Any) -> Any:
|
17 |
+
return final_answer
|
18 |
|
19 |
def __init__(self, *args, **kwargs):
|
20 |
self.is_initialized = False
|