inferware commited on
Commit
3853221
·
1 Parent(s): 6621cd7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
2
  from transformers import pipeline
3
  from textblob import TextBlob
4
  model_name= "finiteautomata/bertweet-base-sentiment-analysis"
5
- pipe = pipeline(model_name)
6
  st.title("Sentiment Analysis")
7
 
8
  st.subheader("Which framework would you like to use for sentiment analysis?")
@@ -18,4 +18,4 @@ else:
18
  out = out.sentiment
19
 
20
  st.write("Sentiment of Text: ")
21
- st.write(out)
 
2
  from transformers import pipeline
3
  from textblob import TextBlob
4
  model_name= "finiteautomata/bertweet-base-sentiment-analysis"
5
+ pipe = pipeline("sentiment-analysis")
6
  st.title("Sentiment Analysis")
7
 
8
  st.subheader("Which framework would you like to use for sentiment analysis?")
 
18
  out = out.sentiment
19
 
20
  st.write("Sentiment of Text: ")
21
+ st.write(out)