ka2021vin commited on
Commit
f9b5a3c
·
verified ·
1 Parent(s): 13a4728

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -19,21 +19,21 @@ from Gradio_UI import GradioUI
19
  # """
20
  # return "What magic will you build ?"
21
 
22
- @tool
23
- def get_stock_information(stock:str) -> str:
24
  ''' this tool provide company information for the input stock ticker
25
  Args:
26
  stock: str
27
  Returns:
28
  str
29
  '''
30
- try:
31
- data=yf.Ticker(stock)
32
- info1=data.info
33
- return '**'.join([f'{ky} of {stock} is {info1[ky]}' for ky in info1.keys()])
34
- except Exception as e:
35
- return f"Error fetching stock info '{stock}': {str(e)}"
36
- pass
37
 
38
  @tool
39
  def get_current_time_in_timezone(timezone: str) -> str:
 
19
  # """
20
  # return "What magic will you build ?"
21
 
22
+ #@tool
23
+ #def get_stock_information(stock:str) -> str:
24
  ''' this tool provide company information for the input stock ticker
25
  Args:
26
  stock: str
27
  Returns:
28
  str
29
  '''
30
+ # try:
31
+ # data=yf.Ticker(stock)
32
+ # info1=data.info
33
+ # return '**'.join([f'{ky} of {stock} is {info1[ky]}' for ky in info1.keys()])
34
+ # except Exception as e:
35
+ # return f"Error fetching stock info '{stock}': {str(e)}"
36
+ # pass
37
 
38
  @tool
39
  def get_current_time_in_timezone(timezone: str) -> str: