Spaces:
Running
Running
Update pages/Entorno de Ejecución.py
Browse files
pages/Entorno de Ejecución.py
CHANGED
@@ -30,7 +30,7 @@ classic_ml_root = "/home/user/app/classicML"
|
|
30 |
|
31 |
@st.cache_resource
|
32 |
def load_pca():
|
33 |
-
|
34 |
|
35 |
def _predict(_model_list, _weights, _img):
|
36 |
y_gorrito = 0
|
@@ -294,7 +294,7 @@ with zero_shot:
|
|
294 |
|
295 |
with classic_ml:
|
296 |
|
297 |
-
load_pca()
|
298 |
col_a, col_b = st.columns(2)
|
299 |
with col_a:
|
300 |
|
|
|
30 |
|
31 |
@st.cache_resource
|
32 |
def load_pca():
|
33 |
+
return joblib.load(os.path.join(classic_ml_root, "pca_model.pkl"))
|
34 |
|
35 |
def _predict(_model_list, _weights, _img):
|
36 |
y_gorrito = 0
|
|
|
294 |
|
295 |
with classic_ml:
|
296 |
|
297 |
+
pca = load_pca()
|
298 |
col_a, col_b = st.columns(2)
|
299 |
with col_a:
|
300 |
|