Spaces:
Runtime error
Runtime error
Leonardo
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -160,7 +160,8 @@ class ToolRegistry:
|
|
| 160 |
return Tool.from_space(
|
| 161 |
space_id="xkerser/gemma-3-12b-it",
|
| 162 |
name="gemma_vision",
|
| 163 |
-
description="
|
|
|
|
| 164 |
except Exception as e:
|
| 165 |
print(f"✗ Couldn't initialize vision tool: {e}")
|
| 166 |
raise
|
|
@@ -197,7 +198,7 @@ def create_agent():
|
|
| 197 |
gemma_vision_tool = ToolRegistry.load_vision_tools()
|
| 198 |
|
| 199 |
# Combine all tools into a single list (not a tuple)
|
| 200 |
-
all_tools = [visualizer] + web_tools + [gemma_vision_tool]
|
| 201 |
|
| 202 |
# Validate tools before creating agent
|
| 203 |
for tool in all_tools:
|
|
|
|
| 160 |
return Tool.from_space(
|
| 161 |
space_id="xkerser/gemma-3-12b-it",
|
| 162 |
name="gemma_vision",
|
| 163 |
+
description="Upload an image to extract and analyze text and visual content from images using Gemma 3",
|
| 164 |
+
)
|
| 165 |
except Exception as e:
|
| 166 |
print(f"✗ Couldn't initialize vision tool: {e}")
|
| 167 |
raise
|
|
|
|
| 198 |
gemma_vision_tool = ToolRegistry.load_vision_tools()
|
| 199 |
|
| 200 |
# Combine all tools into a single list (not a tuple)
|
| 201 |
+
all_tools = [visualizer] + web_tools + [gemma_vision_tool]
|
| 202 |
|
| 203 |
# Validate tools before creating agent
|
| 204 |
for tool in all_tools:
|