bianxg commited on
Commit
c42852b
·
verified ·
1 Parent(s): 7dc582a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -33,7 +33,7 @@ def get_current_time_in_timezone(timezone: str) -> str:
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
  @tool
36
- def stock_data(ticker: str) -> dict: # type: ignore[type-arg]
37
  """
38
  A tool that analyze stock data.
39
  Args:
@@ -115,6 +115,8 @@ def stock_data(ticker: str) -> dict: # type: ignore[type-arg]
115
 
116
  final_answer = FinalAnswerTool()
117
 
 
 
118
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
119
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
120
 
 
33
  except Exception as e:
34
  return f"Error fetching time for timezone '{timezone}': {str(e)}"
35
  @tool
36
+ def analyze_stock(ticker: str) -> dict: # type: ignore[type-arg]
37
  """
38
  A tool that analyze stock data.
39
  Args:
 
115
 
116
  final_answer = FinalAnswerTool()
117
 
118
+ print(analyze_stock('AMD'))
119
+
120
  # If the agent does not answer, the model is overloaded, please use another model or the following Hugging Face Endpoint that also contains qwen2.5 coder:
121
  # model_id='https://pflgm2locj2t89co.us-east-1.aws.endpoints.huggingface.cloud'
122