Tuan197 commited on
Commit
5664405
·
verified ·
1 Parent(s): 2dd2754

Update app.py

Browse files

edit description

Files changed (1) hide show
  1. app.py +3 -3
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 2-dimensional coordinates
16
  Args:
17
- coord1: the 2-dimensional coordinate of the first point in the numpy array [x,y]
18
- coord2: the 2-dimensional coordinate of the second point in the numpy array [x,y]
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