Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def translate(text):
|
|
49 |
return " ".join(translations)
|
50 |
|
51 |
# Load sentiment analysis model
|
52 |
-
rating_pipe = pipeline("
|
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]
|