Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,10 @@ import streamlit as st
|
|
| 6 |
import joblib
|
| 7 |
|
| 8 |
# Load the trained model and dataset
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
| 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
|