frncscp commited on
Commit
8973c7e
1 Parent(s): 761cd21

Update pages/Entorno de Ejecución.py

Browse files
Files changed (1) hide show
  1. pages/Entorno de Ejecución.py +2 -2
pages/Entorno de Ejecución.py CHANGED
@@ -154,8 +154,8 @@ with cnn:
154
 
155
  with st.spinner('Cargando predicción...'):
156
  selected_models = [load_model(model_dict[model_name]) for model_name in model_choice if model_name not in selected_models]
157
- final_weights = weight_list if len(weight_list) >= 1 else [1 for i in range(len(selected_models))]
158
- y_gorrito, raw_img = _predict(selected_models, final_weights, img)
159
 
160
  if round(float(y_gorrito*100)) >= threshold:
161
  st.success("¡Patacón Detectado!")
 
154
 
155
  with st.spinner('Cargando predicción...'):
156
  selected_models = [load_model(model_dict[model_name]) for model_name in model_choice if model_name not in selected_models]
157
+ #final_weights = weight_list if len(weight_list) >= 1 else [1 for i in range(len(selected_models))]
158
+ y_gorrito, raw_img = _predict(selected_models, img)
159
 
160
  if round(float(y_gorrito*100)) >= threshold:
161
  st.success("¡Patacón Detectado!")