manjot11 commited on
Commit
aa1a75a
·
verified ·
1 Parent(s): 5fb5c85

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
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(animal_category:str)-> str:
13
- """A tool that takes animal category as input and return local name of that input category of animal.
14
  Args:
15
- animal_category: category of animal
16
  """
17
- if animal_category == 'dog':
18
  return 'Jatin'
19
- elif animal_category == 'cat':
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'