Spaces:
Sleeping
Sleeping
David Kovář
commited on
Commit
·
f3ac5a1
1
Parent(s):
091f3cd
fix wrong parameter types
Browse files- tool/UnknownTextTool.py +3 -3
tool/UnknownTextTool.py
CHANGED
|
@@ -29,15 +29,15 @@ class BasicMathTool(Tool):
|
|
| 29 |
"description": "Mathematical operation to perform (+, -, *, /)"
|
| 30 |
},
|
| 31 |
"x": {
|
| 32 |
-
"type": "
|
| 33 |
"description": "First number"
|
| 34 |
},
|
| 35 |
"y": {
|
| 36 |
-
"type": "
|
| 37 |
"description": "Second number"
|
| 38 |
}
|
| 39 |
}
|
| 40 |
-
output_type = "
|
| 41 |
|
| 42 |
def forward(self, operation, x, y):
|
| 43 |
try:
|
|
|
|
| 29 |
"description": "Mathematical operation to perform (+, -, *, /)"
|
| 30 |
},
|
| 31 |
"x": {
|
| 32 |
+
"type": "number",
|
| 33 |
"description": "First number"
|
| 34 |
},
|
| 35 |
"y": {
|
| 36 |
+
"type": "number",
|
| 37 |
"description": "Second number"
|
| 38 |
}
|
| 39 |
}
|
| 40 |
+
output_type = "number"
|
| 41 |
|
| 42 |
def forward(self, operation, x, y):
|
| 43 |
try:
|