likki1715 commited on
Commit
8ad8b34
·
verified ·
1 Parent(s): 213cbf1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -20,14 +20,14 @@ def my_custom_tool(arg1:str, arg2:int)-> str: #it's import to specify the return
20
  @tool
21
  def basic_statistics(numbers:list[float]) -> str:
22
  """this function calculates the mean,median,mode for the provided list of numbers
23
- args:
24
- numbers : a list of numbers
25
  """
26
  try:
27
  avg = statistics.mean(numbers)
28
  med = statistics.median(numbers)
29
  mod = statistics.mode(numbers)
30
- return f"stats for your provided numbers are average/mean : {avd}\n median : {med} \n mode : {mod}\n "
31
  except Exception as e:
32
  return f"error in processing:{str(e)} "
33
 
 
20
  @tool
21
  def basic_statistics(numbers:list[float]) -> str:
22
  """this function calculates the mean,median,mode for the provided list of numbers
23
+ Args:
24
+ numbers: a list of numbers
25
  """
26
  try:
27
  avg = statistics.mean(numbers)
28
  med = statistics.median(numbers)
29
  mod = statistics.mode(numbers)
30
+ return f"stats for your provided numbers are average/mean : {avg}\n median : {med} \n mode : {mod}\n "
31
  except Exception as e:
32
  return f"error in processing:{str(e)} "
33