Update app.py
Browse files
app.py
CHANGED
@@ -16,15 +16,15 @@ def get_classifier_model():
|
|
16 |
|
17 |
#st.image("Suncorp-Bank-logo.png",width=255)
|
18 |
|
19 |
-
st.title("
|
20 |
st.markdown("***")
|
21 |
|
22 |
-
text = st.text_area(label="
|
23 |
st.markdown("***")
|
24 |
|
25 |
col1, col2, col3 = st.columns((1,1,1))
|
26 |
col1.header("Select Sentiments")
|
27 |
-
sentiments = col1.multiselect("",["Happy","Sad","Neutral"])
|
28 |
col2.header("Select Topics")
|
29 |
entities = col2.multiselect("",["Bank Account","Credit Card","Home Loan","Motor Loan"],
|
30 |
["Bank Account","Credit Card","Home Loan","Motor Loan"])
|
@@ -32,8 +32,8 @@ entities = col2.multiselect("",["Bank Account","Credit Card","Home Loan","Motor
|
|
32 |
|
33 |
col3.header("Select Reasons")
|
34 |
|
35 |
-
reasons = col3.multiselect("",["
|
36 |
-
["
|
37 |
|
38 |
is_multi_class = st.checkbox("Can have more than one classes",value=True)
|
39 |
|
@@ -66,12 +66,15 @@ if classify_button_clicked:
|
|
66 |
#print(classification_output)
|
67 |
fig = get_classification(sentiments)
|
68 |
# col5, col6= st.columns((1, 1))
|
|
|
|
|
69 |
col1.write(fig)
|
70 |
|
71 |
if entities:
|
72 |
#print(classification_output)
|
73 |
fig = get_classification(entities)
|
74 |
# col7, col8= st.columns((1, 1))
|
|
|
75 |
col2.write(fig)
|
76 |
|
77 |
if reasons:
|
|
|
16 |
|
17 |
#st.image("Suncorp-Bank-logo.png",width=255)
|
18 |
|
19 |
+
st.title("Review Analyzer")
|
20 |
st.markdown("***")
|
21 |
|
22 |
+
text = st.text_area(label="Paste/Type the review here..")
|
23 |
st.markdown("***")
|
24 |
|
25 |
col1, col2, col3 = st.columns((1,1,1))
|
26 |
col1.header("Select Sentiments")
|
27 |
+
sentiments = col1.multiselect("",["Happy","Sad","Neutral"],["Happy","Sad","Neutral"])
|
28 |
col2.header("Select Topics")
|
29 |
entities = col2.multiselect("",["Bank Account","Credit Card","Home Loan","Motor Loan"],
|
30 |
["Bank Account","Credit Card","Home Loan","Motor Loan"])
|
|
|
32 |
|
33 |
col3.header("Select Reasons")
|
34 |
|
35 |
+
reasons = col3.multiselect("",["Poor Service","No Empathy","Abuse"],
|
36 |
+
["Poor Service","No Empathy","Abuse"])
|
37 |
|
38 |
is_multi_class = st.checkbox("Can have more than one classes",value=True)
|
39 |
|
|
|
66 |
#print(classification_output)
|
67 |
fig = get_classification(sentiments)
|
68 |
# col5, col6= st.columns((1, 1))
|
69 |
+
col1.markdown("***")
|
70 |
+
col1.markdown("***")
|
71 |
col1.write(fig)
|
72 |
|
73 |
if entities:
|
74 |
#print(classification_output)
|
75 |
fig = get_classification(entities)
|
76 |
# col7, col8= st.columns((1, 1))
|
77 |
+
|
78 |
col2.write(fig)
|
79 |
|
80 |
if reasons:
|