Jeffrey Rathgeber Jr commited on
Commit
4cd6d9a
·
unverified ·
1 Parent(s): 68b7881

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
  import tensorflow as tf
3
  from transformers import pipeline
4
  from textblob import TextBlob
5
- from vaderSentiment.vaderSentiment import SentimentIntensityAnalyzer
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)