HOLYBOY commited on
Commit
07ecaec
1 Parent(s): 5068095
Files changed (1) hide show
  1. app.py +19 -0
app.py ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import joblib
3
+ import pandas as pd
4
+ import numpy as np
5
+ import plotly.graph_objects as go
6
+ from PIL import Image
7
+ import time
8
+ import matplotlib.pyplot as plt
9
+ from io import BytesIO
10
+
11
+ # Load the saved trained models, transformers, and the scalers
12
+ num_imputer = joblib.load('https://drive.google.com/file/d/1qdh31R8f7KzP3UZY9rZkMUrtxDbX69sr/view?usp=drive_link/numerical_imputer.joblib')
13
+ cat_imputer = joblib.load('https://drive.google.com/file/d/1qdh31R8f7KzP3UZY9rZkMUrtxDbX69sr/view?usp=drive_link/cat_imputer.joblib')
14
+ encoder = joblib.load('https://drive.google.com/file/d/1qdh31R8f7KzP3UZY9rZkMUrtxDbX69sr/view?usp=drive_link/encoder.joblib')
15
+ scaler = joblib.load('https://drive.google.com/file/d/1qdh31R8f7KzP3UZY9rZkMUrtxDbX69sr/view?usp=drive_link/scaler.joblib')
16
+ lr_model = joblib.load('https://drive.google.com/file/d/1qdh31R8f7KzP3UZY9rZkMUrtxDbX69sr/view?usp=drive_link/lr_smote_model.joblib')
17
+
18
+
19
+