Spaces:
Runtime error
Runtime error
Update sentence_counter.py
Browse files- sentence_counter.py +4 -1
sentence_counter.py
CHANGED
@@ -8,6 +8,9 @@ class SentenceCounterTool(Tool):
|
|
8 |
outputs = ["text"]
|
9 |
|
10 |
def __call__(self, prompt: str):
|
11 |
-
|
|
|
|
|
|
|
12 |
return len(sentences)
|
13 |
|
|
|
8 |
outputs = ["text"]
|
9 |
|
10 |
def __call__(self, prompt: str):
|
11 |
+
print(prompt)
|
12 |
+
print("----")
|
13 |
+
sentences = prompt.split(". ")
|
14 |
+
print(len(sentences))
|
15 |
return len(sentences)
|
16 |
|