taha454 commited on
Commit
b8c99ee
·
verified ·
1 Parent(s): af449aa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -9,13 +9,14 @@ from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
- def sort(lis_:list)-> str: #it's import to specify the return type
13
- #Keep this format for the description / args / args description but feel free to modify the tool
14
- """A tool that take any number of arg and return it sorted
15
  Args:
16
- lis_ : list of numbers to be sorted
17
  """
18
- return str(sorted(lis_))
 
19
 
20
  @tool
21
  def get_current_time_in_timezone(timezone: str) -> str:
 
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity !
11
  @tool
12
+ def sort(lis_: list[float]) -> list[float]:
13
+ """A tool that takes a list of numbers and returns them sorted.
14
+
15
  Args:
16
+ lis_ (float): list of numbers to be sorted
17
  """
18
+ return sorted(lis_)
19
+
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str: