Spaces:
Running
Running
Update pages/Entorno de Ejecución.py
Browse files
pages/Entorno de Ejecución.py
CHANGED
@@ -85,7 +85,7 @@ with cnn:
|
|
85 |
|
86 |
uploaded_file = st.file_uploader(key = 'convnet', label = 'Sube la imagen a clasificar',type= ['jpg','png', 'jpeg', 'jfif', 'webp', 'heic'])
|
87 |
|
88 |
-
if st.button(key = 'convnet', '¿Hay un patacón en la imagen?'):
|
89 |
if (len(model_choice) > 0 and ultra_flag) or (len(model_choice) == 0 and ultra_flag is None):
|
90 |
st.write('Debe elegir un método (debe seleccionar o deseleccionar alguno): Ultra-Patacotrón o Selección Múltiple.')
|
91 |
|
@@ -135,7 +135,7 @@ with vit:
|
|
135 |
st.title('Visual Transformer')
|
136 |
st.caption('One class is all you need!')
|
137 |
uploaded_file = st.file_uploader(key = 'ViT', label = 'Sube la imagen a clasificar',type= ['jpg','png', 'jpeg', 'jfif', 'webp', 'heic'])
|
138 |
-
if st.button(key = 'convnet', '¿Hay un patacón en la imagen?'):
|
139 |
if uploaded_file is not None:
|
140 |
classifier = pipeline("image-classification", model="frncscp/patacoptimus-prime")
|
141 |
img = preprocess(uploaded_file)
|
|
|
85 |
|
86 |
uploaded_file = st.file_uploader(key = 'convnet', label = 'Sube la imagen a clasificar',type= ['jpg','png', 'jpeg', 'jfif', 'webp', 'heic'])
|
87 |
|
88 |
+
if st.button(key = 'convnet', label ='¿Hay un patacón en la imagen?'):
|
89 |
if (len(model_choice) > 0 and ultra_flag) or (len(model_choice) == 0 and ultra_flag is None):
|
90 |
st.write('Debe elegir un método (debe seleccionar o deseleccionar alguno): Ultra-Patacotrón o Selección Múltiple.')
|
91 |
|
|
|
135 |
st.title('Visual Transformer')
|
136 |
st.caption('One class is all you need!')
|
137 |
uploaded_file = st.file_uploader(key = 'ViT', label = 'Sube la imagen a clasificar',type= ['jpg','png', 'jpeg', 'jfif', 'webp', 'heic'])
|
138 |
+
if st.button(key = 'convnet', label ='¿Hay un patacón en la imagen?'):
|
139 |
if uploaded_file is not None:
|
140 |
classifier = pipeline("image-classification", model="frncscp/patacoptimus-prime")
|
141 |
img = preprocess(uploaded_file)
|