Senasu commited on
Commit
8ebef03
·
verified ·
1 Parent(s): 49edc41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -6,7 +6,10 @@ import streamlit as st
6
  import joblib
7
 
8
  # Load the trained model and dataset
9
- model = joblib.load('best_regression_model.pkl')
 
 
 
10
  df = pd.read_csv('Startups.csv')
11
 
12
  # Preprocessor setup for scaling numerical and encoding categorical features
 
6
  import joblib
7
 
8
  # Load the trained model and dataset
9
+ import pickle
10
+ with open('best_regression_model.pkl', 'rb') as file:
11
+ model = pickle.load(file)
12
+
13
  df = pd.read_csv('Startups.csv')
14
 
15
  # Preprocessor setup for scaling numerical and encoding categorical features