Update app.py
Browse files
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(
|
| 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)
|