anjasafm commited on
Commit
74e40d3
1 Parent(s): 4f3f880

Upload models.py

Browse files
Files changed (1) hide show
  1. models.py +2 -1
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 = model.predict(df)
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: