Spaces:
Sleeping
Sleeping
File size: 311 Bytes
960a987 d59b3c4 960a987 d59b3c4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
import streamlit as st
from transformers import pipeline
pipe = pipeline('sentiment-analysis')
st.write('SENTIMENTAL ANALYIS')
text = st.text_area('Enter text')
if text:
out = pipe(text)
label = out[0]['label']
score = out[0]['score']
st.write('Label: ', label)
st.write('Score: ', score)
|