Spaces:
Runtime error
Runtime error
Leonardo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,6 @@ from scripts.text_web_browser import (
|
|
| 21 |
VisitTool,
|
| 22 |
)
|
| 23 |
from scripts.visual_qa import visualizer
|
| 24 |
-
from scripts.text_cleaner_tool import TextCleanerTool
|
| 25 |
|
| 26 |
from smolagents import (
|
| 27 |
CodeAgent,
|
|
@@ -171,15 +170,6 @@ class ToolRegistry:
|
|
| 171 |
print(f"✗ Couldn't initialize image generation tool: {e}")
|
| 172 |
raise
|
| 173 |
|
| 174 |
-
@staticmethod
|
| 175 |
-
def load_clean_text_tool():
|
| 176 |
-
"""Initialize and return image generation tools."""
|
| 177 |
-
try:
|
| 178 |
-
return TextCleanerTool
|
| 179 |
-
except Exception as e:
|
| 180 |
-
print(f"✗ Couldn't initialize clean text tool: {e}")
|
| 181 |
-
raise
|
| 182 |
-
|
| 183 |
|
| 184 |
def create_agent():
|
| 185 |
"""Creates a fresh agent instance with properly configured tools."""
|
|
|
|
| 21 |
VisitTool,
|
| 22 |
)
|
| 23 |
from scripts.visual_qa import visualizer
|
|
|
|
| 24 |
|
| 25 |
from smolagents import (
|
| 26 |
CodeAgent,
|
|
|
|
| 170 |
print(f"✗ Couldn't initialize image generation tool: {e}")
|
| 171 |
raise
|
| 172 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
|
| 174 |
def create_agent():
|
| 175 |
"""Creates a fresh agent instance with properly configured tools."""
|