KwameOO commited on
Commit
434dc4c
1 Parent(s): 22f048c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -49,11 +49,11 @@ def load_data(relative_path):
49
 
50
  # ----- Loading the key components
51
  # Loading the base dataframe
52
- rpath = r"data\train_data.csv"
53
  df_loaded = load_data(rpath)
54
 
55
  # Loading the toolkit
56
- loaded_toolkit = load_ml_toolkit(r"src\Streamlit_toolkit")
57
  if "results" not in st.session_state:
58
  st.session_state["results"] = []
59
 
@@ -64,7 +64,7 @@ encoder = loaded_toolkit["encoder"]
64
 
65
  # Import the model
66
  model = XGBClassifier()
67
- model.load_model(r"src\xgb_model.json")
68
 
69
 
70
  # Define app sections
 
49
 
50
  # ----- Loading the key components
51
  # Loading the base dataframe
52
+ rpath = r"data/train_data.csv"
53
  df_loaded = load_data(rpath)
54
 
55
  # Loading the toolkit
56
+ loaded_toolkit = load_ml_toolkit(r"src/Streamlit_toolkit")
57
  if "results" not in st.session_state:
58
  st.session_state["results"] = []
59
 
 
64
 
65
  # Import the model
66
  model = XGBClassifier()
67
+ model.load_model(r"src/xgb_model.json")
68
 
69
 
70
  # Define app sections