dromerosm commited on
Commit
68b8132
·
verified ·
1 Parent(s): c568cf2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 snippets and links on a given topic"""
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
  ###