TUTORIAL / app.py
Emerson's picture
Create app.py
2e46b5c
raw
history blame contribute delete
286 Bytes
importar streamlit como st
de la tubería de importación de transformadores
st . title ( 'Ejemplo en Cara Abrazándose' )
pipe = pipeline ( 'análisis de sentimiento' )
texto = st . text_area ( 'ingresar texto' )
si texto :
out = pipe ( texto )
st . json ( fuera )