Spaces:
Sleeping
Sleeping
Upload models.py
Browse files
models.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import pickle
|
|
|
4 |
|
5 |
# Load the trained model
|
6 |
with open('model_xgb.pkl', 'rb') as file_1:
|
@@ -50,7 +51,7 @@ def run():
|
|
50 |
|
51 |
# Make prediction
|
52 |
if submitted:
|
53 |
-
prediction =
|
54 |
|
55 |
# Display prediction result
|
56 |
if prediction[0] == 0:
|
|
|
1 |
import streamlit as st
|
2 |
import pandas as pd
|
3 |
import pickle
|
4 |
+
|
5 |
|
6 |
# Load the trained model
|
7 |
with open('model_xgb.pkl', 'rb') as file_1:
|
|
|
51 |
|
52 |
# Make prediction
|
53 |
if submitted:
|
54 |
+
prediction = model_inf_xgb.predict(df)
|
55 |
|
56 |
# Display prediction result
|
57 |
if prediction[0] == 0:
|