Jingni commited on
Commit
51bae80
1 Parent(s): b923c83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
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)