Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,6 @@ model = load_model("final_model_kfold.h5", custom_objects={'f1_weighted': f1_wei
|
|
72 |
|
73 |
from sklearn.preprocessing import LabelEncoder
|
74 |
encoder = LabelEncoder()
|
75 |
-
print(test_data.columns)
|
76 |
y_test = encoder.fit_transform(test_data["prdtypecode"])
|
77 |
class_labels = encoder.classes_
|
78 |
label_size = 27
|
@@ -80,7 +79,15 @@ label_size = 27
|
|
80 |
|
81 |
|
82 |
####### Page principale
|
83 |
-
st.set_page_config(layout="wide")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
84 |
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
|
85 |
|
86 |
st.title("Rakuten Challenge")
|
@@ -156,7 +163,7 @@ elif tabs == "Preprocessing":
|
|
156 |
detection_langage_et_traduction(st, extract_data, sum_data)
|
157 |
|
158 |
elif tabs == "Modèle":
|
159 |
-
presentation_modele(st, test_data, model,class_labels,y_test)
|
160 |
|
161 |
elif tabs == "Pistes exploratoires":
|
162 |
st.write("# Pistes exploratoires")
|
|
|
72 |
|
73 |
from sklearn.preprocessing import LabelEncoder
|
74 |
encoder = LabelEncoder()
|
|
|
75 |
y_test = encoder.fit_transform(test_data["prdtypecode"])
|
76 |
class_labels = encoder.classes_
|
77 |
label_size = 27
|
|
|
79 |
|
80 |
|
81 |
####### Page principale
|
82 |
+
st.set_page_config(layout="wide",page_title="Rakuten Challenge")
|
83 |
+
hide_default_format = """
|
84 |
+
<style>
|
85 |
+
#MainMenu {visibility: hidden; }
|
86 |
+
footer {visibility: hidden;}
|
87 |
+
</style>
|
88 |
+
"""
|
89 |
+
st.markdown(hide_default_format, unsafe_allow_html=True)
|
90 |
+
|
91 |
st.markdown('<style>' + open('./style.css').read() + '</style>', unsafe_allow_html=True)
|
92 |
|
93 |
st.title("Rakuten Challenge")
|
|
|
163 |
detection_langage_et_traduction(st, extract_data, sum_data)
|
164 |
|
165 |
elif tabs == "Modèle":
|
166 |
+
presentation_modele(st, test_data, model,class_labels,y_test,encoder)
|
167 |
|
168 |
elif tabs == "Pistes exploratoires":
|
169 |
st.write("# Pistes exploratoires")
|