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