Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -54,6 +54,7 @@ def search_arxiv(query: str) -> str:
|
|
| 54 |
# return "The request timed out. Please try again later or check the URL."
|
| 55 |
# except requests.exceptions.RequestException as e:
|
| 56 |
# return f"Error fetching the webpage: {str(e)}"
|
|
|
|
| 57 |
# except Exception as e:
|
| 58 |
# return f"An unexpected error occurred: {str(e)}"
|
| 59 |
#
|
|
@@ -187,7 +188,7 @@ class MagAgent:
|
|
| 187 |
WikipediaSearchTool(),
|
| 188 |
SpeechToTextTool(),
|
| 189 |
ExcelReaderTool(),
|
| 190 |
-
VisitWebpageTool(),
|
| 191 |
PythonCodeReaderTool(),
|
| 192 |
search_arxiv,
|
| 193 |
]
|
|
|
|
| 54 |
# return "The request timed out. Please try again later or check the URL."
|
| 55 |
# except requests.exceptions.RequestException as e:
|
| 56 |
# return f"Error fetching the webpage: {str(e)}"
|
| 57 |
+
|
| 58 |
# except Exception as e:
|
| 59 |
# return f"An unexpected error occurred: {str(e)}"
|
| 60 |
#
|
|
|
|
| 188 |
WikipediaSearchTool(),
|
| 189 |
SpeechToTextTool(),
|
| 190 |
ExcelReaderTool(),
|
| 191 |
+
# VisitWebpageTool(),
|
| 192 |
PythonCodeReaderTool(),
|
| 193 |
search_arxiv,
|
| 194 |
]
|