Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,14 +9,14 @@ from Gradio_UI import GradioUI
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
-
def get_local_name_of_animal(
|
| 13 |
-
"""A tool that
|
| 14 |
Args:
|
| 15 |
-
|
| 16 |
"""
|
| 17 |
-
if
|
| 18 |
return 'Jatin'
|
| 19 |
-
elif
|
| 20 |
return 'Bobo'
|
| 21 |
else:
|
| 22 |
return 'Bareja'
|
|
|
|
| 9 |
|
| 10 |
# Below is an example of a tool that does nothing. Amaze us with your creativity !
|
| 11 |
@tool
|
| 12 |
+
def get_local_name_of_animal(category: str)-> str:
|
| 13 |
+
"""A tool that fetches the local name of animal given the category.
|
| 14 |
Args:
|
| 15 |
+
category: a string representing category of animal.
|
| 16 |
"""
|
| 17 |
+
if category == 'dog':
|
| 18 |
return 'Jatin'
|
| 19 |
+
elif category == 'cat':
|
| 20 |
return 'Bobo'
|
| 21 |
else:
|
| 22 |
return 'Bareja'
|