Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ def load_translation_pipeline():
|
|
| 13 |
# 加载情感分析 pipeline
|
| 14 |
@st.cache_resource
|
| 15 |
def load_sentiment_pipeline():
|
| 16 |
-
return pipeline("sentiment-analysis", model="Rocky080808/finetuned-
|
| 17 |
|
| 18 |
# 定义语言映射
|
| 19 |
language_name_map = {
|
|
|
|
| 13 |
# 加载情感分析 pipeline
|
| 14 |
@st.cache_resource
|
| 15 |
def load_sentiment_pipeline():
|
| 16 |
+
return pipeline("sentiment-analysis", model="Rocky080808/finetuned-distilbert-base-uncased-finetuned-sst-2-english", max_length=256)
|
| 17 |
|
| 18 |
# 定义语言映射
|
| 19 |
language_name_map = {
|