xujinheng666 commited on
Commit
19f3fad
·
verified ·
1 Parent(s): 3521f10

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)