se crea app. py
Browse files
app.py
ADDED
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
|
5 |
+
st.title('Codigo de prueba')
|
6 |
+
with st.sidebar:
|
7 |
+
st.session_state.model = st.selectbox("Seleccione un modelo",['edchaud/Tallerfn_tun_mod_eval'])
|
8 |
+
|
9 |
+
|
10 |
+
Clasificador = pipeline('sentiment-analysis',model=st.session_state.model)
|
11 |
+
input = st.text_input('Agregar algun texto')
|
12 |
+
Res=Clasificador(input)
|
13 |
+
st.markdown(Res)
|