Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -64,11 +64,11 @@ def predict(query):
|
|
64 |
|
65 |
def findRealProb(data):
|
66 |
if data is None or len(data) == 0:
|
67 |
-
return jsonify({'error': 'No query provided'})
|
68 |
if len(data) > 9400:
|
69 |
-
return jsonify({'error': 'Cannot analyze more than 9400 characters!'})
|
70 |
if count_words(data) > 1500:
|
71 |
-
return jsonify({'error': 'Cannot analyze more than 1500 words'})
|
72 |
|
73 |
# return {"Real": predict(data)}
|
74 |
chunksOfText = (chunks_of_900(data))
|
|
|
64 |
|
65 |
def findRealProb(data):
|
66 |
if data is None or len(data) == 0:
|
67 |
+
return jsonify({'error': 'No query provided'})
|
68 |
if len(data) > 9400:
|
69 |
+
return jsonify({'error': 'Cannot analyze more than 9400 characters!'})
|
70 |
if count_words(data) > 1500:
|
71 |
+
return jsonify({'error': 'Cannot analyze more than 1500 words'})
|
72 |
|
73 |
# return {"Real": predict(data)}
|
74 |
chunksOfText = (chunks_of_900(data))
|