Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ def load_my_model():
|
|
| 12 |
# Cache the scaler as well
|
| 13 |
@st.cache_resource
|
| 14 |
def load_my_scaler():
|
| 15 |
-
return joblib.load("
|
| 16 |
|
| 17 |
model = load_my_model()
|
| 18 |
scaler = load_my_scaler()
|
|
@@ -21,6 +21,7 @@ scaler = load_my_scaler()
|
|
| 21 |
THRESHOLD = 0.1
|
| 22 |
|
| 23 |
st.title("Maritime Anomaly Detection")
|
|
|
|
| 24 |
st.markdown("### Input the following AIS features:")
|
| 25 |
|
| 26 |
# Taking inputs from the user
|
|
|
|
| 12 |
# Cache the scaler as well
|
| 13 |
@st.cache_resource
|
| 14 |
def load_my_scaler():
|
| 15 |
+
return joblib.load("scaler.pkl")
|
| 16 |
|
| 17 |
model = load_my_model()
|
| 18 |
scaler = load_my_scaler()
|
|
|
|
| 21 |
THRESHOLD = 0.1
|
| 22 |
|
| 23 |
st.title("Maritime Anomaly Detection")
|
| 24 |
+
st.image("/ship.webp")
|
| 25 |
st.markdown("### Input the following AIS features:")
|
| 26 |
|
| 27 |
# Taking inputs from the user
|