Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ def calculatePerplexities(text):
|
|
55 |
return ({'error': 'No query provided'})
|
56 |
if len(text) > 9400:
|
57 |
return ({'error': 'Cannot analyze more than 9400 characters!'})
|
58 |
-
if len(text.split) > 1500:
|
59 |
return ({'error': 'Cannot analyze more than 1500 words'})
|
60 |
|
61 |
sentences = text_to_sentences(text)
|
|
|
55 |
return ({'error': 'No query provided'})
|
56 |
if len(text) > 9400:
|
57 |
return ({'error': 'Cannot analyze more than 9400 characters!'})
|
58 |
+
if len(text.split()) > 1500:
|
59 |
return ({'error': 'Cannot analyze more than 1500 words'})
|
60 |
|
61 |
sentences = text_to_sentences(text)
|