Jingni commited on
Commit
4954aa1
1 Parent(s): 3bc3cf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -3,9 +3,9 @@ from transformers import pipeline
3
 
4
  st.title("Predict Emotion of Social Media Post")
5
 
6
- pipeline = pipeline("text-classification", "Jingni/transient_data" )
7
 
8
- text = st.write("Enter a social media post to analyze its emotion:")
9
 
10
  if text:
11
  out =pipe(text)
 
3
 
4
  st.title("Predict Emotion of Social Media Post")
5
 
6
+ pipeline = pipeline("sentiment-analysis", "Jingni/transient_data" )
7
 
8
+ text = st.write("Enter a social media post here:")
9
 
10
  if text:
11
  out =pipe(text)