xujinheng666 commited on
Commit
95e8e86
·
verified ·
1 Parent(s): d253e5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -49,7 +49,7 @@ def translate(text):
49
  return " ".join(translations)
50
 
51
  # Load sentiment analysis model
52
- rating_pipe = pipeline("sentiment-analysis", model="uer/roberta-base-finetuned-dianping-chinese")
53
 
54
  def rate_quality(text):
55
  result = rating_pipe(text)[0]
 
49
  return " ".join(translations)
50
 
51
  # Load sentiment analysis model
52
+ rating_pipe = pipeline("text-classification", model="Leo0129/CustomModel_dianping-chinese")
53
 
54
  def rate_quality(text):
55
  result = rating_pipe(text)[0]