Leonardo commited on
Commit
9c564d3
·
verified ·
1 Parent(s): 8029cec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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="Ask questions about images and visual content by uploading an image with a text prompt."
 
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] + [image_generator]
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: