Update app.py
Browse files
app.py
CHANGED
@@ -29,7 +29,7 @@ co = cohere.Client(cohere_api_key)
|
|
29 |
# Define the DuckDuckGoSearch tool
|
30 |
@tool('DuckDuckGoSearchResults')
|
31 |
def search_results(search_query: str) -> dict:
|
32 |
-
"""Search the web for
|
33 |
return DuckDuckGoSearchResults(max_results=10).run(search_query)
|
34 |
|
35 |
@tool('WebScrapper')
|
@@ -52,8 +52,7 @@ def web_scrapper(url: str, topic: str) -> str:
|
|
52 |
prompt_truncation='AUTO'
|
53 |
)
|
54 |
|
55 |
-
summary_response = f"""
|
56 |
-
###
|
57 |
Summary: {response.text}
|
58 |
URL: {url}
|
59 |
###
|
|
|
29 |
# Define the DuckDuckGoSearch tool
|
30 |
@tool('DuckDuckGoSearchResults')
|
31 |
def search_results(search_query: str) -> dict:
|
32 |
+
"""Search the web for a given search_query"""
|
33 |
return DuckDuckGoSearchResults(max_results=10).run(search_query)
|
34 |
|
35 |
@tool('WebScrapper')
|
|
|
52 |
prompt_truncation='AUTO'
|
53 |
)
|
54 |
|
55 |
+
summary_response = f"""###
|
|
|
56 |
Summary: {response.text}
|
57 |
URL: {url}
|
58 |
###
|