Priyanka-Kumavat-At-TE commited on
Commit
349b16b
·
1 Parent(s): 46acc58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +17 -0
app.py CHANGED
@@ -14,4 +14,21 @@ from tensorflow.keras.layers import Dense
14
  import matplotlib.pyplot as plt
15
  import pickle
16
 
 
 
17
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
14
  import matplotlib.pyplot as plt
15
  import pickle
16
 
17
+ import warnings
18
+ warnings.filterwarnings("ignore", category=UserWarning)
19
 
20
+ import streamlit as st
21
+ import os
22
+
23
+ st.title('Supply Chain Causal Analysis')
24
+
25
+ # loading the save model
26
+ model = tf.keras.models.load_model(os.path.join('Weights_Updated','Best_model.tf'), compile=False)
27
+
28
+ # loading the product label encoding object
29
+ with open ('le_product.pkl','rb') as file:
30
+ le_product = pickle.load(file)
31
+
32
+ # loading the scaling object
33
+ with open ('scaler_scca.pkl','rb') as file1:
34
+ scaler = pickle.load(file1)