Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ config = AutoConfig.from_pretrained(MODEL)
|
|
25 |
|
26 |
# create classifier function
|
27 |
def classify_compliant(text):
|
28 |
-
|
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=["""
|
67 |
-
|
68 |
-
I
|
69 |
-
I
|
|
|
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.
|