lization commited on
Commit
3df13c9
·
verified ·
1 Parent(s): 168cca4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,7 +8,7 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
  # Below is an example of a tool that does nothing. Amaze us with your creativity!
11
-
12
  def not_alone_stat(condition:str, gender:int)-> str: # it's important to specify the return type
13
  # Keep this format for the tool description / args description but feel free to modify the tool
14
  """A tool that tells you around how many percent of people with the same gender in the world are facing the same issue.
@@ -27,7 +27,7 @@ def not_alone_stat(condition:str, gender:int)-> str: # it's important to specify
27
  except Exception as e:
28
  return f"Error fetching data for '{gender} experiencing {condition}': {e}. Please check the spelling or give another try."
29
 
30
-
31
  def get_current_time_in_timezone(timezone: str) -> str:
32
  """A tool that fetches the current local time in a specified timezone.
33
  Args:
 
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
  def not_alone_stat(condition:str, gender:int)-> str: # it's important to specify the return type
13
  # Keep this format for the tool description / args description but feel free to modify the tool
14
  """A tool that tells you around how many percent of people with the same gender in the world are facing the same issue.
 
27
  except Exception as e:
28
  return f"Error fetching data for '{gender} experiencing {condition}': {e}. Please check the spelling or give another try."
29
 
30
+ @tool
31
  def get_current_time_in_timezone(timezone: str) -> str:
32
  """A tool that fetches the current local time in a specified timezone.
33
  Args: