Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ config = AutoConfig.from_pretrained(MODEL)
|
|
26 |
# create classifier function
|
27 |
def classify_compliant(text):
|
28 |
text = cleaned_complaints(text)
|
29 |
-
if len(text)<
|
30 |
return "Cannot Categorize the Complaint"
|
31 |
else:
|
32 |
text = preprocess(text)
|
|
|
26 |
# create classifier function
|
27 |
def classify_compliant(text):
|
28 |
text = cleaned_complaints(text)
|
29 |
+
if len(text)<3:
|
30 |
return "Cannot Categorize the Complaint"
|
31 |
else:
|
32 |
text = preprocess(text)
|