Spaces:
Sleeping
Sleeping
Commit
·
bbf29a4
1
Parent(s):
6ab38ef
fix bugs
Browse files- app.py +3 -3
- logistic_model_pipeline.pkl2 +0 -0
app.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
import
|
| 3 |
import pandas as pd
|
| 4 |
|
| 5 |
# Load the saved model
|
| 6 |
-
|
| 7 |
-
|
| 8 |
|
| 9 |
# Define a function to make predictions
|
| 10 |
def predict_heart_disease(age, sex_male, cigs_per_day, tot_chol, sys_bp, glucose):
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import pickle
|
| 3 |
import pandas as pd
|
| 4 |
|
| 5 |
# Load the saved model
|
| 6 |
+
with open("logistic_model_pipeline.pkl2", "rb") as f:
|
| 7 |
+
pipeline = pickle.load(f)
|
| 8 |
|
| 9 |
# Define a function to make predictions
|
| 10 |
def predict_heart_disease(age, sex_male, cigs_per_day, tot_chol, sys_bp, glucose):
|
logistic_model_pipeline.pkl2
ADDED
|
Binary file (1.41 kB). View file
|
|
|