pechaut commited on
Commit
f9e9205
1 Parent(s): 5ae6327

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -24,6 +24,11 @@ importlib.reload(streamlit_presentation.modele)
24
  from streamlit_presentation.modele import presentation_modele
25
  from sklearn.metrics import f1_score
26
 
 
 
 
 
 
27
  plt.rcParams['font.size'] = 12
28
  plt.rcParams['axes.labelsize'] = 10
29
  plt.rcParams['axes.titlesize'] = 12
@@ -38,6 +43,9 @@ extract_data = pd.read_csv( 'data_tr_extract.csv')
38
  sum_data = pd.read_csv( 'data_sum_extract.csv')
39
  test_data = pd.read_pickle( 'data_test.pkl')
40
 
 
 
 
41
  from keras.models import load_model
42
  import tensorflow as tf
43
  from tensorflow.keras import backend as K
@@ -166,7 +174,7 @@ 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")
170
- st.write("Ici")
171
 
172
 
 
24
  from streamlit_presentation.modele import presentation_modele
25
  from sklearn.metrics import f1_score
26
 
27
+
28
+ import streamlit_presentation.plusloin
29
+ importlib.reload(streamlit_presentation.plusloin)
30
+ from streamlit_presentation.plusloin import plusloin
31
+
32
  plt.rcParams['font.size'] = 12
33
  plt.rcParams['axes.labelsize'] = 10
34
  plt.rcParams['axes.titlesize'] = 12
 
43
  sum_data = pd.read_csv( 'data_sum_extract.csv')
44
  test_data = pd.read_pickle( 'data_test.pkl')
45
 
46
+ from tensorflow.keras.models import load_model
47
+ autoencoder = load_model('autoencoder_model.h5')
48
+
49
  from keras.models import load_model
50
  import tensorflow as tf
51
  from tensorflow.keras import backend as K
 
174
  presentation_modele(st, test_data, model,class_labels,y_test,encoder)
175
 
176
  elif tabs == "Pistes exploratoires":
177
+ st.write("### Pistes exploratoires")
178
+ plusloin(st,autoencoder)
179
 
180