dromerosm commited on
Commit
1cbdd39
1 Parent(s): 69c2924

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -34,6 +34,7 @@ def fetch_content(url):
34
  response.raise_for_status()
35
  return response.text
36
  except requests.exceptions.RequestException as e:
 
37
  return f"Error fetching content: {e}"
38
 
39
  # Define the DuckDuckGoSearch tool
@@ -74,14 +75,16 @@ def web_scrapper(url: str, topic: str) -> str:
74
  response = co.chat(
75
  model='command-r-plus',
76
  message=prompt,
77
- temperature=0.2,
78
- max_tokens=500,
79
  chat_history=[],
80
  prompt_truncation='AUTO'
81
  )
82
 
83
  summary_response = f"""###
84
- Summary: {response.text}
 
 
85
  URL: {url}
86
  ###
87
  """
 
34
  response.raise_for_status()
35
  return response.text
36
  except requests.exceptions.RequestException as e:
37
+ print ("ERROR: " + e)
38
  return f"Error fetching content: {e}"
39
 
40
  # Define the DuckDuckGoSearch tool
 
75
  response = co.chat(
76
  model='command-r-plus',
77
  message=prompt,
78
+ temperature=0.4,
79
+ max_tokens=1000,
80
  chat_history=[],
81
  prompt_truncation='AUTO'
82
  )
83
 
84
  summary_response = f"""###
85
+ Summary:
86
+ {response.text}
87
+
88
  URL: {url}
89
  ###
90
  """