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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -47,5 +47,5 @@ if st.button("Classify Sentiment"):
47
 
48
  # Perform text summarization when the review sentiment is classified as negative
49
  if sentiment_result[1] == 'negative':
50
- category = output_dic[int(product_category(review)["label"].split("_")[1])]
51
- st.write(f"Category of the faulty product is {category}")
 
47
 
48
  # Perform text summarization when the review sentiment is classified as negative
49
  if sentiment_result[1] == 'negative':
50
+ category = product_dic[int(product_category(review)["label"].split("_")[1])]
51
+ st.write("Category of the faulty product is ", category)