LeemahLee commited on
Commit
de4755d
Β·
1 Parent(s): fd5473d

adjusted the title

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -10,7 +10,7 @@ model_path = "model"
10
  tokenizer = AutoTokenizer.from_pretrained(model_path)
11
  model = AutoModelForSequenceClassification.from_pretrained(model_path)
12
 
13
- label_map = {0: "Negative", 1: "Neutral", 2: "Positive"}
14
  colors = {"Negative": "red", "Neutral": "gray", "Positive": "green"}
15
  FEEDBACK_FILE = "user_feedback.csv"
16
 
@@ -46,7 +46,7 @@ def save_feedback(label, confidence, correct):
46
 
47
  with gr.Blocks(title="Amazon Review Sentiment App") as demo:
48
  gr.Markdown(
49
- "<div style='text-align: center; font-size: 24px;'>πŸ“¦ <b>Amazon Review Sentiment Classifier</b></div>"
50
  )
51
 
52
  gr.Markdown("Enter a review below to check if it's **Positive**, **Neutral**, or **Negative**.")
 
10
  tokenizer = AutoTokenizer.from_pretrained(model_path)
11
  model = AutoModelForSequenceClassification.from_pretrained(model_path)
12
 
13
+ label_map = {0: "Negative 😞", 1: "Neutral 😐", 2: "Positive 😊"}
14
  colors = {"Negative": "red", "Neutral": "gray", "Positive": "green"}
15
  FEEDBACK_FILE = "user_feedback.csv"
16
 
 
46
 
47
  with gr.Blocks(title="Amazon Review Sentiment App") as demo:
48
  gr.Markdown(
49
+ "<div style='text-align: center; font-size: 24px;'> <b> πŸ’¬πŸ“Š Review Analyzer</b></div>"
50
  )
51
 
52
  gr.Markdown("Enter a review below to check if it's **Positive**, **Neutral**, or **Negative**.")