Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,10 +12,9 @@ from Gradio_UI import GradioUI
|
|
12 |
@tool
|
13 |
def my_custom_tool(arg1:str)-> float: #it's import to specify the return type
|
14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
15 |
-
"""A tool that
|
16 |
Args:
|
17 |
-
arg1:
|
18 |
-
arg2: the second argument
|
19 |
"""
|
20 |
ticker = arg1
|
21 |
stock = yf.Ticker(ticker)
|
|
|
12 |
@tool
|
13 |
def my_custom_tool(arg1:str)-> float: #it's import to specify the return type
|
14 |
#Keep this format for the description / args / args description but feel free to modify the tool
|
15 |
+
"""A tool that looks up stock prices
|
16 |
Args:
|
17 |
+
arg1: a string that corresponds to a stock market ticker (eg. TSLA for Tesla, AAPL, for Apple, MSFT for Microsoft, etc)
|
|
|
18 |
"""
|
19 |
ticker = arg1
|
20 |
stock = yf.Ticker(ticker)
|