Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ pipe.model.config.forced_decoder_ids = pipe.tokenizer.get_decoder_prompt_ids(lan
|
|
24 |
rating_pipe = pipeline("text-classification", model="tabularisai/multilingual-sentiment-analysis")
|
25 |
|
26 |
# Sentiment label mapping
|
27 |
-
label_map = {"Negative": "Very Poor", "Neutral": "Neutral", "Positive": "Very Good"}
|
28 |
|
29 |
def remove_punctuation(text):
|
30 |
return re.sub(r'[^\w\s]', '', text)
|
|
|
24 |
rating_pipe = pipeline("text-classification", model="tabularisai/multilingual-sentiment-analysis")
|
25 |
|
26 |
# Sentiment label mapping
|
27 |
+
label_map = {"Very Negative": "Very Poor", "Negative": "Poor", "Neutral": "Neutral", "Positive": "Good", "Very Positive": "Very Good"}
|
28 |
|
29 |
def remove_punctuation(text):
|
30 |
return re.sub(r'[^\w\s]', '', text)
|