Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,15 @@ import streamlit as st
|
|
3 |
|
4 |
#Nombre_modelo = 'pysentimiento/robertuito-sentiment-analysis'
|
5 |
|
6 |
-
st.title("
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
#Clasificador = pipeline('sentiment-analysis', model = Nombre_modelo,device='cuda')
|
9 |
#Res=Cla("sundays are good day for relaxing")
|
|
|
3 |
|
4 |
#Nombre_modelo = 'pysentimiento/robertuito-sentiment-analysis'
|
5 |
|
6 |
+
st.title("Ejercicio interfaz transformers pipeline")
|
7 |
+
|
8 |
+
model_options = [
|
9 |
+
"facebook/bart-large-mnli",
|
10 |
+
"roberta-large-mnli",
|
11 |
+
"cross-encoder/nli-roberta-base"
|
12 |
+
]
|
13 |
+
# Seleccionar el modelo del pipeline
|
14 |
+
selected_model = st.selectbox("Selecciona un modelo", model_options)
|
15 |
|
16 |
#Clasificador = pipeline('sentiment-analysis', model = Nombre_modelo,device='cuda')
|
17 |
#Res=Cla("sundays are good day for relaxing")
|