uuidenny commited on
Commit
6080ce1
·
verified ·
1 Parent(s): 11d8c32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- def my_custom_tool(currency: str = "usd", amount: int = 1)-> str: #it's import to specify the return type
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)
 
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)