SergeyO7 commited on
Commit
dac047e
·
verified ·
1 Parent(s): 4d51e39

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +2 -2
agent.py CHANGED
@@ -57,6 +57,7 @@ import whisper
57
  # image_url = match.group(0)
58
  #
59
  # headers = {
 
60
  # "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
61
  # }
62
  # try:
@@ -116,8 +117,7 @@ class VisitWebpageTool(Tool):
116
  except RequestException as e:
117
  return f"Error fetching the webpage: {str(e)}"
118
  except Exception as e:
119
- return
120
- f"An unexpected error occurred: {str(e)}"
121
 
122
  def __init__(self, *args, **kwargs):
123
  self.is_initialized = False
 
57
  # image_url = match.group(0)
58
  #
59
  # headers = {
60
+
61
  # "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
62
  # }
63
  # try:
 
117
  except RequestException as e:
118
  return f"Error fetching the webpage: {str(e)}"
119
  except Exception as e:
120
+ return f"An unexpected error occurred: {str(e)}"
 
121
 
122
  def __init__(self, *args, **kwargs):
123
  self.is_initialized = False