eocone commited on
Commit
14b4e61
·
verified ·
1 Parent(s): a4b07ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -11
app.py CHANGED
@@ -11,19 +11,13 @@ from Gradio_UI import GradioUI
11
 
12
  @tool
13
  def dog_average_longevity(breed: str) -> str:
 
 
 
 
14
  """
15
- Retrieves the average lifespan of a given dog breed using DuckDuckGo search.
16
 
17
- Parameters
18
- ----------
19
- breed : str
20
- The name of the dog breed (e.g., "Labrador").
21
-
22
- Returns
23
- -------
24
- str
25
- A message stating the average lifespan of the breed, or an error message if not found.
26
- """
27
  query = f"average lifespan for {breed} dog in years"
28
 
29
  with DDGS() as ddgs:
 
11
 
12
  @tool
13
  def dog_average_longevity(breed: str) -> str:
14
+ """A tool that retrieves the average lifespan of a given dog breed using DuckDuckGo search.
15
+ Args:
16
+ breed: a string representing the name of the dog breed.
17
+
18
  """
19
+ return "A string stating the average lifespan of the dog breed in years."
20
 
 
 
 
 
 
 
 
 
 
 
21
  query = f"average lifespan for {breed} dog in years"
22
 
23
  with DDGS() as ddgs: