saritha5 commited on
Commit
fd0944c
1 Parent(s): ff4d113

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -47,8 +47,10 @@ def classify_compliant(text):
47
  #build the Gradio app
48
  #Instructuction = "Write an imaginary review about a product or service you might be interested in."
49
  title="Customer Complaints Categorisation"
50
- description = """Write a complaint on insurance product or service,\
51
- see how the machine learning model is able to predict your Complaint type"""
 
 
52
  article = """
53
  - Click submit button to test Consumer Complaint Segmentation
54
  - Click clear button to refresh text
@@ -56,7 +58,7 @@ article = """
56
 
57
  gr.Interface(classify_compliant,
58
  inputs=gr.Textbox(lines =10,label = "Type your Complaint of our Product here", max_lines = 20),
59
- outputs = gr.Textbox(lines =5,label = "Complaint Category"),
60
  title = title,
61
  description = description,
62
  #Instruction = Instructuction,
@@ -73,8 +75,8 @@ gr.Interface(classify_compliant,
73
  """This debt is beyond the Maryland Statute of Limitations. It is illegal for a debt collector to collect on an expired debt. They have taken illegal action by seizing my Maryland State Refund when the debt had already expired and beyond the Statute of Limitation which is 3 years in the state of Maryland""",
74
  """The company has been calling my employer in an attempt to collect a debt. When I spoke with them and informed them that this was not an appropriate number to call. I asked what company they were calling from and a phone number so he told me the company name, but the man on the phone would not give me his name or a phone number.
75
  I had mailed a letter requesting verification a few weeks ago and had n't received anything back. In the letter I specifically requested that all communication be done through mail.""",
76
- """ The company has been calling my employer in an attempt to collect a debt. When I spoke with them and informed them that this was not an appropriate number to call. I asked what company they were calling from and a phone number so he told me the company name, but the man on the phone would not give me his name or a phone number.
77
- I had mailed a letter requesting verification a few weeks ago and had n't received anything back. In the letter I specifically requested that all communication be done through mail."""
78
 
79
  ]
80
  ).launch()
 
47
  #build the Gradio app
48
  #Instructuction = "Write an imaginary review about a product or service you might be interested in."
49
  title="Customer Complaints Categorisation"
50
+ description = """Effectively handling the customer complaints provide an opportunity for the service provider to resolve the customer’s
51
+ problems on time and thus reduce dissatisfaction levels.
52
+ Write a complaint on insurance product or service,\
53
+ see how the machine learning model is able to Categorisation your Complaint"""
54
  article = """
55
  - Click submit button to test Consumer Complaint Segmentation
56
  - Click clear button to refresh text
 
58
 
59
  gr.Interface(classify_compliant,
60
  inputs=gr.Textbox(lines =10,label = "Type your Complaint of our Product here", max_lines = 20),
61
+ outputs = gr.label(lines =5,label = "Complaint Category"),
62
  title = title,
63
  description = description,
64
  #Instruction = Instructuction,
 
75
  """This debt is beyond the Maryland Statute of Limitations. It is illegal for a debt collector to collect on an expired debt. They have taken illegal action by seizing my Maryland State Refund when the debt had already expired and beyond the Statute of Limitation which is 3 years in the state of Maryland""",
76
  """The company has been calling my employer in an attempt to collect a debt. When I spoke with them and informed them that this was not an appropriate number to call. I asked what company they were calling from and a phone number so he told me the company name, but the man on the phone would not give me his name or a phone number.
77
  I had mailed a letter requesting verification a few weeks ago and had n't received anything back. In the letter I specifically requested that all communication be done through mail.""",
78
+ """ I do n't think I chose the correct issue above, however I think it is closest to my issue. I have a record on my credit report that I have disputed through both the company and the credit bureaus. The dispute is marked as being disputed by me on my report, but it was not removed despite the creditor not sending me verification of this debt.
79
+ I do not even know what this debt is for.I have tried contacting the collection agency by mail to obtain verification with no response and they will not remove the item from my report."""
80
 
81
  ]
82
  ).launch()