Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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
|
| 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.
|