Cheangys commited on
Commit
c8693c1
·
verified ·
1 Parent(s): fad54bf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -48,7 +48,7 @@ def get_stock_price(stock: str) -> str:
48
  search_tool = DuckDuckGoSearchTool()
49
 
50
  # Perform the search query
51
- search_results = search_tool.run(f"what is the current price of {stock}?")
52
 
53
  # If search_results is a list, extract the first relevant result
54
  if isinstance(search_results, list) and len(search_results) > 0:
 
48
  search_tool = DuckDuckGoSearchTool()
49
 
50
  # Perform the search query
51
+ search_results = search_tool.search(f"what is the current price of {stock}?")
52
 
53
  # If search_results is a list, extract the first relevant result
54
  if isinstance(search_results, list) and len(search_results) > 0: