File size: 542 Bytes
3767294
79852cb
183273b
79852cb
bf9ae69
d17bdaa
 
 
 
 
 
 
 
 
bf9ae69
79852cb
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import streamlit as st
#from transformers import pipeline

#Nombre_modelo = 'pysentimiento/robertuito-sentiment-analysis'

st.title("Ejercicio interfaz transformers pipeline")

model_options = [
    "facebook/bart-large-mnli",
    "roberta-large-mnli",
    "cross-encoder/nli-roberta-base"
]
# Seleccionar el modelo del pipeline
selected_model = st.selectbox("Selecciona un modelo", model_options)

#Clasificador =  pipeline('sentiment-analysis', model = Nombre_modelo,device='cuda')
#Res=Cla("sundays are good day for relaxing")
#print(Res)