Spaces:
Running
Running
Update pages/Entorno de Ejecución.py
Browse files
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,
|
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!")
|