Cheangys commited on
Commit
0908fe6
·
verified ·
1 Parent(s): f40be10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,7 +52,7 @@ def get_stock_price(stock: str) -> str:
52
 
53
  # Perform the search
54
  search_results = search_tool(f"current stock price of {stock}")
55
- return search_results[0]
56
 
57
  # Debugging: Print results to see what is returned
58
  print(f"DEBUG: search results -> {search_results}")
@@ -101,7 +101,7 @@ def duckweb_search(query: str) -> str:
101
 
102
  # Perform the search
103
  search_results = search_tool(query)
104
- return f"the answer is {search_results[0]}"
105
 
106
  # Debugging: Print results to see what is returned
107
  print(f"DEBUG: search results -> {search_results}")
 
52
 
53
  # Perform the search
54
  search_results = search_tool(f"current stock price of {stock}")
55
+ return search_results
56
 
57
  # Debugging: Print results to see what is returned
58
  print(f"DEBUG: search results -> {search_results}")
 
101
 
102
  # Perform the search
103
  search_results = search_tool(query)
104
+ return f"the answer is {search_results}"
105
 
106
  # Debugging: Print results to see what is returned
107
  print(f"DEBUG: search results -> {search_results}")