Skip to content

Instantly share code, notes, and snippets.

@Abhayparashar31
Last active July 18, 2021 08:23
Show Gist options
  • Save Abhayparashar31/4b405a6a6defe6d2b8798f74176fab53 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/4b405a6a6defe6d2b8798f74176fab53 to your computer and use it in GitHub Desktop.
import streamlit as st
from textblob import TextBlob
st.write(" Real Time Sentiment Analyzer ")
input = st.text_input("Enter Your Review...")
score = TextBlob(input).sentiment.polarity
if score==0:st.write("Neutral 😐")
elif score<0:st.write("Negative 😫")
elif score>0:st.write("Positive πŸ˜€")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment