Spaces:
Runtime error
Runtime error
Jeffrey Rathgeber Jr
commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import streamlit as st
|
|
| 2 |
import tensorflow as tf
|
| 3 |
from transformers import pipeline
|
| 4 |
from textblob import TextBlob
|
| 5 |
-
from vaderSentiment
|
| 6 |
|
| 7 |
classifier = pipeline(task="sentiment-analysis")
|
| 8 |
|
|
@@ -36,4 +36,4 @@ if option == 'TextBlob':
|
|
| 36 |
if option == 'Vader':
|
| 37 |
# vader
|
| 38 |
sentiment = SentimentIntensityAnalyzer().polarity_scores(textIn)['compound']
|
| 39 |
-
st.write('According to Vader, input text is ', sentiment)
|
|
|
|
| 2 |
import tensorflow as tf
|
| 3 |
from transformers import pipeline
|
| 4 |
from textblob import TextBlob
|
| 5 |
+
from vaderSentiment import SentimentIntensityAnalyzer
|
| 6 |
|
| 7 |
classifier = pipeline(task="sentiment-analysis")
|
| 8 |
|
|
|
|
| 36 |
if option == 'Vader':
|
| 37 |
# vader
|
| 38 |
sentiment = SentimentIntensityAnalyzer().polarity_scores(textIn)['compound']
|
| 39 |
+
st.write('According to Vader, input text is ', sentiment)
|