edchaud commited on
Commit
241af5e
1 Parent(s): 0965391

se crea app. py

Browse files
Files changed (1) hide show
  1. app.py +13 -0
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)