saritha5 commited on
Commit
546fac2
1 Parent(s): 41d6d18

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)<0:
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)