Update app.py
Browse files
app.py
CHANGED
|
@@ -5,7 +5,7 @@ import pickle
|
|
| 5 |
import numpy as np
|
| 6 |
|
| 7 |
# Load model and preprocessing artifacts
|
| 8 |
-
model = joblib.load("
|
| 9 |
with open("features_to_drop.pkl", "rb") as f:
|
| 10 |
features_to_drop = pickle.load(f)
|
| 11 |
|
|
@@ -42,7 +42,7 @@ def preprocess_input(row_values):
|
|
| 42 |
return input_df
|
| 43 |
|
| 44 |
# Streamlit UI
|
| 45 |
-
st.title("🔍
|
| 46 |
st.markdown("Paste a **single row** of raw features from the dataset (49 values, tab-separated):")
|
| 47 |
|
| 48 |
user_input = st.text_area("Input Row", height=150)
|
|
|
|
| 5 |
import numpy as np
|
| 6 |
|
| 7 |
# Load model and preprocessing artifacts
|
| 8 |
+
model = joblib.load("ensemble_model.pkl")
|
| 9 |
with open("features_to_drop.pkl", "rb") as f:
|
| 10 |
features_to_drop = pickle.load(f)
|
| 11 |
|
|
|
|
| 42 |
return input_df
|
| 43 |
|
| 44 |
# Streamlit UI
|
| 45 |
+
st.title("🔍 Anomaly Detection In Network Traffic")
|
| 46 |
st.markdown("Paste a **single row** of raw features from the dataset (49 values, tab-separated):")
|
| 47 |
|
| 48 |
user_input = st.text_area("Input Row", height=150)
|