Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,13 @@ from Gradio_UI import GradioUI
|
|
| 12 |
def count(txt:str, c:int)-> int:
|
| 13 |
"""A tool that counts the number of occurences of c in txt.
|
| 14 |
E.g. if txt="abcea" and c="a", it returns 2.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"""
|
| 16 |
n = 0
|
| 17 |
for i in txt:
|
|
|
|
| 12 |
def count(txt:str, c:int)-> int:
|
| 13 |
"""A tool that counts the number of occurences of c in txt.
|
| 14 |
E.g. if txt="abcea" and c="a", it returns 2.
|
| 15 |
+
|
| 16 |
+
Args:
|
| 17 |
+
txt: the containing string
|
| 18 |
+
c: the char to be counted.
|
| 19 |
+
|
| 20 |
+
Returns: number of c in txt
|
| 21 |
+
|
| 22 |
"""
|
| 23 |
n = 0
|
| 24 |
for i in txt:
|