Moditha24 commited on
Commit
a2ec98d
·
verified ·
1 Parent(s): b662922

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -4,6 +4,10 @@ from joblib import load
4
  from tensorflow.keras.models import load_model
5
  import tensorflow as tf
6
  import pickle
 
 
 
 
7
 
8
  # Load the LabelEncoder and ColumnTransformer before prediction
9
  with open('label_encoder.pkl', 'rb') as f:
 
4
  from tensorflow.keras.models import load_model
5
  import tensorflow as tf
6
  import pickle
7
+ import pandas as pd # Ensure pandas is imported for Excel file handling
8
+
9
+ # Load the DataFrame from the Excel file
10
+ df = pd.read_excel('dataset.xls') # Replace with the correct path to your dataset
11
 
12
  # Load the LabelEncoder and ColumnTransformer before prediction
13
  with open('label_encoder.pkl', 'rb') as f: