Sasidhar commited on
Commit
4ec43da
·
1 Parent(s): a8b0ddc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py CHANGED
@@ -23,17 +23,31 @@ 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"])
 
 
 
 
31
 
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
 
 
23
  st.markdown("***")
24
 
25
  col1, col2, col3 = st.columns((1,1,1))
26
+
27
  col1.header("Select Sentiments")
28
  sentiments = col1.multiselect("",["Happy","Sad","Neutral"],["Happy","Sad","Neutral"])
29
+ additional_sentiments = col1.text()
30
+
31
+ if additional_sentiments:
32
+ sentiments = sentiments + additional_sentiments.split(",")
33
+
34
  col2.header("Select Topics")
35
  entities = col2.multiselect("",["Bank Account","Credit Card","Home Loan","Motor Loan"],
36
  ["Bank Account","Credit Card","Home Loan","Motor Loan"])
37
+ additional_entities= col2.text()
38
+
39
+ if additional_entities:
40
+ entities = entities + additional_entities.split(",")
41
 
42
 
43
  col3.header("Select Reasons")
44
 
45
  reasons = col3.multiselect("",["Poor Service","No Empathy","Abuse"],
46
  ["Poor Service","No Empathy","Abuse"])
47
+ additional_reasons= col3.text()
48
+
49
+ if additional_reasons:
50
+ reasons = reasons + additional_reasons.split(",")
51
 
52
  is_multi_class = st.checkbox("Can have more than one classes",value=True)
53