Ryleeeee commited on
Commit
dcec485
·
verified ·
1 Parent(s): fd16468

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -14,12 +14,7 @@ st.markdown("<h1 style='text-align: center;'>Customer Review Analysis</h1>", uns
14
  st.write("Sentiment classification: positive, netural, negative")
15
  st.write("Product category classification: books, mobile, mobile accessories, refrigerator, smartTv")
16
 
17
-
18
  product_dic = {0: "books", 1: "mobile", 2: "mobile accessories", 3: "refrigerator", 4: "smartTv"}
19
- predictions3 = [output_dic[int(o['label'].split("_")[1])] for o in output3]
20
-
21
-
22
-
23
 
24
  # User can enter the customer review
25
  review = st.text_area("Enter the customer review", "")
 
14
  st.write("Sentiment classification: positive, netural, negative")
15
  st.write("Product category classification: books, mobile, mobile accessories, refrigerator, smartTv")
16
 
 
17
  product_dic = {0: "books", 1: "mobile", 2: "mobile accessories", 3: "refrigerator", 4: "smartTv"}
 
 
 
 
18
 
19
  # User can enter the customer review
20
  review = st.text_area("Enter the customer review", "")