Update app.py
Browse files
app.py
CHANGED
|
@@ -47,7 +47,7 @@ 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="Consumer Complaint Segmentation"
|
| 50 |
-
description = """Write a complaint 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
|
|
@@ -55,8 +55,8 @@ article = """
|
|
| 55 |
"""
|
| 56 |
|
| 57 |
gr.Interface(classify_compliant,
|
| 58 |
-
|
| 59 |
-
|
| 60 |
title = title,
|
| 61 |
description = description,
|
| 62 |
#Instruction = Instructuction,
|
|
|
|
| 47 |
#build the Gradio app
|
| 48 |
#Instructuction = "Write an imaginary review about a product or service you might be interested in."
|
| 49 |
title="Consumer Complaint Segmentation"
|
| 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
|
|
|
|
| 55 |
"""
|
| 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,
|