Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
importar streamlit como st
|
2 |
+
de la tubería de importación de transformadores
|
3 |
+
st . title ( 'Ejemplo en Cara Abrazándose' )
|
4 |
+
pipe = pipeline ( 'análisis de sentimiento' )
|
5 |
+
texto = st . text_area ( 'ingresar texto' )
|
6 |
+
si texto :
|
7 |
+
out = pipe ( texto )
|
8 |
+
st . json ( fuera )
|