Rocky080808 commited on
Commit
d232501
·
verified ·
1 Parent(s): 38a75f1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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-roberta-base", max_length=256)
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 = {