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

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)<0:
30
  return "Cannot Categorize the Complaint"
31
  else:
32
  text = preprocess(text)