SamarthPujari commited on
Commit
1416d02
·
verified ·
1 Parent(s): de66e87

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -14,7 +14,7 @@ from transformers import pipeline
14
  API_KEY = os.getenv("Weather_Token")
15
 
16
  # -------------------- TOOL 1: Get Weather --------------------
17
- @tool(name=get_current_weather)
18
  def get_current_weather(place: str) -> str:
19
  """
20
  A tool that fetches the current weather of a particular place.
@@ -57,7 +57,7 @@ def get_current_weather(place: str) -> str:
57
 
58
 
59
  # -------------------- TOOL 2: Get Time --------------------
60
- @tool(name=get_current_time_in_timezone)
61
  def get_current_time_in_timezone(timezone: str) -> str:
62
  """
63
  A tool that fetches the current local time in a specified timezone.
 
14
  API_KEY = os.getenv("Weather_Token")
15
 
16
  # -------------------- TOOL 1: Get Weather --------------------
17
+ @tool
18
  def get_current_weather(place: str) -> str:
19
  """
20
  A tool that fetches the current weather of a particular place.
 
57
 
58
 
59
  # -------------------- TOOL 2: Get Time --------------------
60
+ @tool
61
  def get_current_time_in_timezone(timezone: str) -> str:
62
  """
63
  A tool that fetches the current local time in a specified timezone.