David Kovář commited on
Commit
f3ac5a1
·
1 Parent(s): 091f3cd

fix wrong parameter types

Browse files
Files changed (1) hide show
  1. 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": "float",
33
  "description": "First number"
34
  },
35
  "y": {
36
- "type": "float",
37
  "description": "Second number"
38
  }
39
  }
40
- output_type = "float"
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: