fcarazo's picture
Update app.py
7ba8cd6 verified
Raw History Blame Contribute Delete
248 Bytes
import streamlit as st
from transformers import pipeline
st.title("Bienvenido a la app de sentiment analysis!")
pipe = pipeline("sentiment-analysis")
text = st.text_area("Introduce un texto:")
if text:
output = pipe(text)
st.json(output)