saritha5 commited on
Commit
22e609f
1 Parent(s): 657d5be

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -25,7 +25,7 @@ config = AutoConfig.from_pretrained(MODEL)
25
 
26
  # create classifier function
27
  def classify_compliant(text):
28
- #text = cleaned_complaints(text)
29
  text = preprocess(text)
30
  encoded_input = tokenizer(text, return_tensors='pt')
31
  output = model(**encoded_input)
@@ -63,10 +63,11 @@ gr.Interface(classify_compliant,
63
  article = article,
64
  allow_flagging = "never",
65
  live = False,
66
- examples=["""old account made attempt contact collection agency work payment plan n accept since received numerous call become uncomfortable distracting taking called work.""",
67
- """I have tried to pay whatever I could over the years on my student loan. I have an overwhelming amount of debt not to mention my daily necessities.
68
- I ca n't exactly come up with any substantial sum of money right now. I have already paid 75 % of the loan too, which is really frustrating that
69
- I am still getting harassed..""",
 
70
  """I was erroneously reported to all three major credit Bureaus by XXXX for a professional fee I paid for {$220.00} on XX/XX/2015.
71
  I have the cancelled check. This check cleared the bank on XX/XX/2015.
72
  I received no notice of this referral to a collection agency and discovered this gross, negligent error after I was denied for a refinance on our home.
 
25
 
26
  # create classifier function
27
  def classify_compliant(text):
28
+ text = cleaned_complaints(text)
29
  text = preprocess(text)
30
  encoded_input = tokenizer(text, return_tensors='pt')
31
  output = model(**encoded_input)
 
63
  article = article,
64
  allow_flagging = "never",
65
  live = False,
66
+ examples=["""Debt to XXXX was satisfied when account was closed and all equipment was returned, XXXX 2014. NO further contact from XXXX XXXX, however,
67
+ 13 months later this " collection \'\' shows up on on my credit report. NO prior written or phone communication.
68
+ I have attempted to contact this Debt Collector and can not get any information pertaining to my account from the""",
69
+ """I receive repeated calls daily from this company. I signed up for a debt consolidation service and they continued to call my personal phone and my place of employment. \nCausing a phone to ring repeatedly in the attempts to annoy or establish communication is against the law.
70
+ I have asked for the calls to stop and sent a cease and desist and still the calls continue""",
71
  """I was erroneously reported to all three major credit Bureaus by XXXX for a professional fee I paid for {$220.00} on XX/XX/2015.
72
  I have the cancelled check. This check cleared the bank on XX/XX/2015.
73
  I received no notice of this referral to a collection agency and discovered this gross, negligent error after I was denied for a refinance on our home.