Spaces:
Sleeping
Sleeping
import streamlit as st | |
from transformers import pipeline | |
from textblob import TextBlob | |
pipe = pipeline('sentiment-analysis') | |
st.title("Analyse de sentiment") | |
#Textbox for text user is entering | |
text = st.text_input('Entrer votre texte') #text is stored in this variable | |
out = pipe(text) | |
st.write("Sentiment of Text: ") | |
st.write(out) |