Juank0621 commited on
Commit
cf33d19
·
verified ·
1 Parent(s): 5e52622

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 currency_converter(amount: float, from_currency: str, to_currency: str) -> str:
13
  """Converts an amount from one currency to another using real-time exchange rates.
14
  Args:
@@ -31,7 +31,7 @@ def currency_converter(amount: float, from_currency: str, to_currency: str) -> s
31
  except Exception as e:
32
  return f"Error fetching exchange rate: {str(e)}"
33
 
34
-
35
  def get_current_time_in_timezone(timezone: str) -> str:
36
  """A tool that fetches the current local time in a specified timezone.
37
  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 currency_converter(amount: float, from_currency: str, to_currency: str) -> str:
13
  """Converts an amount from one currency to another using real-time exchange rates.
14
  Args:
 
31
  except Exception as e:
32
  return f"Error fetching exchange rate: {str(e)}"
33
 
34
+ @tool
35
  def get_current_time_in_timezone(timezone: str) -> str:
36
  """A tool that fetches the current local time in a specified timezone.
37
  Args: