Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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", "")
|