Spaces:
Runtime error
Runtime error
Leonardo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -155,19 +155,6 @@ class ToolRegistry:
|
|
| 155 |
ArchiveSearchTool(browser),
|
| 156 |
TextInspectorTool(model, text_limit),
|
| 157 |
]
|
| 158 |
-
|
| 159 |
-
@staticmethod
|
| 160 |
-
def load_vision_tools():
|
| 161 |
-
"""Initialize and return vision-related tools."""
|
| 162 |
-
try:
|
| 163 |
-
return Tool.from_space(
|
| 164 |
-
space_id="xkerser/gemma-3-12b-it",
|
| 165 |
-
name="gemma_vision",
|
| 166 |
-
description="Upload an image to extract and analyze text and visual content from images using Gemma 3",
|
| 167 |
-
)
|
| 168 |
-
except Exception as e:
|
| 169 |
-
print(f"✗ Couldn't initialize vision tool: {e}")
|
| 170 |
-
raise
|
| 171 |
|
| 172 |
@staticmethod
|
| 173 |
def load_image_generation_tools():
|
|
|
|
| 155 |
ArchiveSearchTool(browser),
|
| 156 |
TextInspectorTool(model, text_limit),
|
| 157 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
|
| 159 |
@staticmethod
|
| 160 |
def load_image_generation_tools():
|