Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,10 @@ from Gradio_UI import GradioUI
|
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
def get_market_cap(ticker_symbol: str)-> str: #it's import to specify the return type
|
| 14 |
-
|
|
|
|
|
|
|
|
|
|
| 15 |
ticker = yf.Ticker(ticker_symbol)
|
| 16 |
|
| 17 |
# Fetch the info dictionary
|
|
|
|
| 11 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 12 |
@tool
|
| 13 |
def get_market_cap(ticker_symbol: str)-> str: #it's import to specify the return type
|
| 14 |
+
"""A tool that fetches the market cap of a stock given its ticker symbol.
|
| 15 |
+
Args:
|
| 16 |
+
ticker_symbol: A string representing a valid stock ticker symbol (e.g., 'EXPE').
|
| 17 |
+
"""
|
| 18 |
ticker = yf.Ticker(ticker_symbol)
|
| 19 |
|
| 20 |
# Fetch the info dictionary
|