BeyzaTopbas commited on
Commit
2fcd04c
·
verified ·
1 Parent(s): 28d12a9

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +5 -6
src/streamlit_app.py CHANGED
@@ -1,11 +1,10 @@
1
- import streamlit as st
2
- import pandas as pd
3
  import joblib
4
 
5
- # ======================
6
- # LOAD MODEL
7
- # ======================
8
- model = joblib.load("spaceship_model.pkl")
9
 
10
  # ======================
11
  # PAGE CONFIG
 
1
+ import os
 
2
  import joblib
3
 
4
+ BASE_DIR = os.path.dirname(os.path.abspath(__file__))
5
+ model_path = os.path.join(BASE_DIR, "spaceship_model.pkl")
6
+
7
+ model = joblib.load(model_path)
8
 
9
  # ======================
10
  # PAGE CONFIG