Spaces:
Configuration error
Configuration error
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,15 @@ from transformers import pipeline
|
|
3 |
|
4 |
st.title("Social Media Posts Emotion")
|
5 |
|
6 |
-
pipeline = pipeline("text-classification")
|
|
|
7 |
|
8 |
text = st.write("Enter a social media post to analyze its emotion:")
|
9 |
|
10 |
if text:
|
11 |
out =pipe(text)
|
12 |
-
st.json(out)
|
|
|
|
|
|
|
|
|
|
3 |
|
4 |
st.title("Social Media Posts Emotion")
|
5 |
|
6 |
+
pipeline = pipeline("text-classification","Jingni/transient_data")
|
7 |
+
pipeline_2 = pipeline("text-classification", "Jingni/tweet_eval")
|
8 |
|
9 |
text = st.write("Enter a social media post to analyze its emotion:")
|
10 |
|
11 |
if text:
|
12 |
out =pipe(text)
|
13 |
+
st.json(out)
|
14 |
+
|
15 |
+
if text:
|
16 |
+
out2= pipe_2(text)
|
17 |
+
st.json(out2)
|