Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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:
|