Update app.py
Browse filesedit description
app.py
CHANGED
|
@@ -12,10 +12,10 @@ from Gradio_UI import GradioUI
|
|
| 12 |
@tool
|
| 13 |
def calculate_euclid_distance_tool(coord1: list, coord2:list)-> float: #it's import to specify the return type
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
-
"""A tool that calculate the euclidean distance between two
|
| 16 |
Args:
|
| 17 |
-
coord1: the
|
| 18 |
-
coord2: the
|
| 19 |
"""
|
| 20 |
return numpy.sqrt(numpy.sum((coord1-coord2)^2))
|
| 21 |
|
|
|
|
| 12 |
@tool
|
| 13 |
def calculate_euclid_distance_tool(coord1: list, coord2:list)-> float: #it's import to specify the return type
|
| 14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
| 15 |
+
"""A tool that calculate the euclidean distance between two vectors
|
| 16 |
Args:
|
| 17 |
+
coord1: the multi dimensional coordinate of the first point in the numpy array
|
| 18 |
+
coord2: the multi dimensional coordinate of the second point in the numpy array
|
| 19 |
"""
|
| 20 |
return numpy.sqrt(numpy.sum((coord1-coord2)^2))
|
| 21 |
|