mymllearner commited on
Commit
553e8d6
·
verified ·
1 Parent(s): 4ec0ed3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -22
app.py CHANGED
@@ -7,29 +7,7 @@ from tools.final_answer import FinalAnswerTool
7
 
8
  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
 
13
- '''
14
- def combine(arg1:str, arg2:int)-> str: #it's import to specify the return type
15
- #Keep this format for the description / args / args description but feel free to modify the tool
16
- """A tool that combines two parameters. It checks if the arguments contain integers or numbers and adds those two if they both are candidates for mathematical addition.
17
- Otherwise returns a concatenated string
18
- Args:
19
- arg1: the first argument
20
- arg2: the second argument
21
- """
22
- def check_int(s):
23
- if s[0] in ('-', '+'):
24
- return s[1:].isdigit()
25
- return s.isdigit()
26
- final_var = ""
27
- if check_int(arg1) == True and check_int(arg2) == True:
28
- final_var = str(arg1+arg2)
29
- else:
30
- final_var = str(arg1)+str(arg2)
31
- return final_var
32
- '''
33
 
34
  @tool
35
  def get_current_time_in_timezone(timezone: str) -> str:
 
7
 
8
  from Gradio_UI import GradioUI
9
 
 
 
10
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  @tool
13
  def get_current_time_in_timezone(timezone: str) -> str: