frncscp commited on
Commit
e818c37
1 Parent(s): 4c5a284

Update pages/Entorno de Ejecución.py

Browse files
Files changed (1) hide show
  1. pages/Entorno de Ejecución.py +5 -5
pages/Entorno de Ejecución.py CHANGED
@@ -83,9 +83,9 @@ with cnn:
83
 
84
  with col_b:
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
 
@@ -132,10 +132,10 @@ with vit:
132
  col_a, col_b = st.columns(2)
133
 
134
  with col_a:
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)
 
83
 
84
  with col_b:
85
 
86
+ uploaded_file = st.file_uploader(key = 'convnet_upload', label = 'Sube la imagen a clasificar',type= ['jpg','png', 'jpeg', 'jfif', 'webp', 'heic'])
87
 
88
+ if st.button(key = 'convnet_button', 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
 
 
132
  col_a, col_b = st.columns(2)
133
 
134
  with col_a:
135
+ st.title('Visual Transformers')
136
  st.caption('One class is all you need!')
137
+ uploaded_file = st.file_uploader(key = 'ViT_upload', label = 'Sube la imagen a clasificar',type= ['jpg','png', 'jpeg', 'jfif', 'webp', 'heic'])
138
+ if st.button(key = 'ViT_button', 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)