johnkirkwood commited on
Commit
6b56e0c
·
verified ·
1 Parent(s): cf9b8af

Update app.py

Browse files

updated count_string_occurrences function

Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ from tools.final_answer import FinalAnswerTool
8
  from Gradio_UI import GradioUI
9
 
10
  @tool
11
- def count_string_occurrences(main_string, sub_string):
12
  """
13
  Returns the number of times sub_string occurs in main_string.
14
 
 
8
  from Gradio_UI import GradioUI
9
 
10
  @tool
11
+ def count_string_occurrences(main_string, sub_string) -> int:
12
  """
13
  Returns the number of times sub_string occurs in main_string.
14