File size: 334 Bytes
4753750
 
 
 
 
1a1da4f
4753750
1a1da4f
 
 
a58505a
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
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)