StephenAIHayes commited on
Commit
a98136a
·
verified ·
1 Parent(s): a717be4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -16,7 +16,9 @@ def count_letters_in_word(arg1:str, arg2:str)-> str: #it's import to specify the
16
  arg1: The word passed to this tool to have its letters counted'
17
  arg2: The letter to check for
18
  """
19
- return "The number of letter N's in the word Navan is : 2 !"
 
 
20
 
21
  @tool
22
  def get_current_time_in_timezone(timezone: str) -> str:
 
16
  arg1: The word passed to this tool to have its letters counted'
17
  arg2: The letter to check for
18
  """
19
+ letter = {arg2}
20
+ word = {arg1}
21
+ return "The number of letter " + {letter} + "'s' in the word " + {word} +" is : " + word.count(letter) + " !"
22
 
23
  @tool
24
  def get_current_time_in_timezone(timezone: str) -> str: