Spaces:
Running
Running
Update customtools.py
Browse files- customtools.py +11 -0
customtools.py
CHANGED
|
@@ -174,6 +174,17 @@ def modulus_tool(a: int, b: int) -> int:
|
|
| 174 |
return a % b
|
| 175 |
|
| 176 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 177 |
@tool
|
| 178 |
def extract_text_from_image(image_path: str) -> str:
|
| 179 |
"""
|
|
|
|
| 174 |
return a % b
|
| 175 |
|
| 176 |
|
| 177 |
+
@tool
|
| 178 |
+
def power_tool(a: float, b: float) -> float:
|
| 179 |
+
"""Get the power of two numbers.
|
| 180 |
+
Args:
|
| 181 |
+
a (float): the first number
|
| 182 |
+
b (float): the second number
|
| 183 |
+
"""
|
| 184 |
+
return a**b
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
|
| 188 |
@tool
|
| 189 |
def extract_text_from_image(image_path: str) -> str:
|
| 190 |
"""
|