Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,13 +10,9 @@ from Gradio_UI import GradioUI
|
|
| 10 |
#my first try
|
| 11 |
@tool
|
| 12 |
def dog_average_longevity(breed: str)-> str:
|
| 13 |
-
"""A tool that uses DuckDuckGo to search the web and
|
| 14 |
-
|
| 15 |
-
Tool name : dog_average_longevity
|
| 16 |
Args:
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
return : The extracted average lifespan of a dog breed in years or a fallback message.
|
| 20 |
"""
|
| 21 |
query = f"average lifespan for {breed} dog in years"
|
| 22 |
|
|
|
|
| 10 |
#my first try
|
| 11 |
@tool
|
| 12 |
def dog_average_longevity(breed: str)-> str:
|
| 13 |
+
"""A tool that uses DuckDuckGo to search the web and returns the average lifespan for a breed of dogs.
|
|
|
|
|
|
|
| 14 |
Args:
|
| 15 |
+
breed : a string representing the breed of the dog (e.g., "Labrador")
|
|
|
|
|
|
|
| 16 |
"""
|
| 17 |
query = f"average lifespan for {breed} dog in years"
|
| 18 |
|