Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ text = st.text_area("Enter your comment", "")
|
|
26 |
# Perform tasks when the user clicks the "Comment" button
|
27 |
if st.button("Comment"):
|
28 |
|
29 |
-
pipe = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base")
|
30 |
|
31 |
# 使用 "j-hartmann/emotion-english-distilroberta-base" 模型进行多维度情感分类
|
32 |
emotion_classifier = pipeline(
|
|
|
26 |
# Perform tasks when the user clicks the "Comment" button
|
27 |
if st.button("Comment"):
|
28 |
|
29 |
+
pipe = pipeline("text-classification", model="j-hartmann/emotion-english-distilroberta-base")
|
30 |
|
31 |
# 使用 "j-hartmann/emotion-english-distilroberta-base" 模型进行多维度情感分类
|
32 |
emotion_classifier = pipeline(
|