Update app.py
Browse filesupdated count_string_occurrences function
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) -> int:
|
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: str, sub_string:str) -> int:
|
12 |
"""
|
13 |
Returns the number of times sub_string occurs in main_string.
|
14 |
|