applebanana commited on
Commit
ce5d8f5
·
verified ·
1 Parent(s): 3a1b088

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- # Create a Ticker object for the given symbol
 
 
 
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