Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,8 +9,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 |
-
|
13 |
-
|
14 |
Args:
|
15 |
currency: The currency to get Bitcoin rate in (default: 'usd')
|
16 |
amount: The amount of Bitcoin to convert (default: 1.0)
|
|
|
9 |
|
10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
11 |
@tool
|
12 |
+
def my_custom_tool(currency: str = "usd", amount: float = 1.0) -> str:
|
13 |
+
"""A tool that fetches the current Bitcoin price and calculates conversion
|
14 |
Args:
|
15 |
currency: The currency to get Bitcoin rate in (default: 'usd')
|
16 |
amount: The amount of Bitcoin to convert (default: 1.0)
|