Spaces:
Sleeping
Sleeping
adjusted the title
Browse files
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;'
|
| 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**.")
|