eocone commited on
Commit
403af8b
·
verified ·
1 Parent(s): 4f24e26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ def dog_average_longevity(breed: str) -> str:
33
 
34
  return "No reliable lifespan information found. Please check with a veterinarian."
35
 
36
-
37
  def extract_lifespan(text: str) -> Optional[str]:
38
  """
39
  Extracts the first occurrence of a lifespan range or single number in years.
@@ -64,7 +64,7 @@ with open("prompts.yaml", 'r') as stream:
64
 
65
  agent = CodeAgent(
66
  model=model,
67
- tools=[final_answer, dog_average_longevity, image_generation_tool], # Now includes image generation
68
  max_steps=6,
69
  verbosity_level=1,
70
  grammar=None,
 
33
 
34
  return "No reliable lifespan information found. Please check with a veterinarian."
35
 
36
+ @tool
37
  def extract_lifespan(text: str) -> Optional[str]:
38
  """
39
  Extracts the first occurrence of a lifespan range or single number in years.
 
64
 
65
  agent = CodeAgent(
66
  model=model,
67
+ tools=[final_answer, dog_average_longevity, extract_lifespan, image_generation_tool], # Now includes image generation
68
  max_steps=6,
69
  verbosity_level=1,
70
  grammar=None,