Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,11 +6,12 @@ import pytz
|
|
| 6 |
import yaml
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
import re
|
|
|
|
| 9 |
|
| 10 |
from Gradio_UI import GradioUI
|
| 11 |
|
| 12 |
@tool
|
| 13 |
-
def my_custom_tool(animal_type=None, breed=None):
|
| 14 |
"""Finds animals and breeds from Brampton Animal Shelter website."""
|
| 15 |
|
| 16 |
base_url = "https://www.brampton.ca/EN/residents/Animal-Services/Pages/Adoption.aspx"
|
|
|
|
| 6 |
import yaml
|
| 7 |
from tools.final_answer import FinalAnswerTool
|
| 8 |
import re
|
| 9 |
+
from typing import Optional
|
| 10 |
|
| 11 |
from Gradio_UI import GradioUI
|
| 12 |
|
| 13 |
@tool
|
| 14 |
+
def my_custom_tool(animal_type: Optional[str] = None, breed: Optional[str] = None):
|
| 15 |
"""Finds animals and breeds from Brampton Animal Shelter website."""
|
| 16 |
|
| 17 |
base_url = "https://www.brampton.ca/EN/residents/Animal-Services/Pages/Adoption.aspx"
|