frncscp commited on
Commit
696d9c3
1 Parent(s): 25ba27a

Update pages/Entorno de Ejecución.py

Browse files
Files changed (1) hide show
  1. pages/Entorno de Ejecución.py +2 -1
pages/Entorno de Ejecución.py CHANGED
@@ -174,6 +174,7 @@ with vit:
174
  with st.spinner('Cargando predicción...'):
175
 
176
  api_result = query(uploaded_file.read(), model_choice[0])
 
177
 
178
  classifiers = [pipeline("image-classification", model= model_dict[model_choice[i]]) for i in range(len(model_choice))]
179
 
@@ -198,7 +199,7 @@ with vit:
198
 
199
  #y_gorrito = classifier[0]["score"]
200
 
201
- st.write(api_result)
202
  y_gorrito = vit_ensemble(classifiers, img)
203
 
204
  if round(float(y_gorrito*100)) >= threshold:
 
174
  with st.spinner('Cargando predicción...'):
175
 
176
  api_result = query(uploaded_file.read(), model_choice[0])
177
+ st.write(api_result)
178
 
179
  classifiers = [pipeline("image-classification", model= model_dict[model_choice[i]]) for i in range(len(model_choice))]
180
 
 
199
 
200
  #y_gorrito = classifier[0]["score"]
201
 
202
+
203
  y_gorrito = vit_ensemble(classifiers, img)
204
 
205
  if round(float(y_gorrito*100)) >= threshold: