JasHugF commited on
Commit
5301eea
·
verified ·
1 Parent(s): 8e60fb6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,8 +7,7 @@ import pandas as pd
7
  # This line loads your entire model from the .keras file.
8
  model = tf.keras.models.load_model("adversarially_trained_model.keras")
9
  print("output_shape:", model.output_shape) # e.g., (None, 5)
10
- CLASS_NAMES = [f'class_{i}' for i in range(23)]# Class names based on the attack mapping from the notebook
11
- print(CLASS_NAMES)
12
 
13
  def preprocess_single_record(record: dict, scaler, df_reference: pd.DataFrame) -> np.ndarray:
14
 
 
7
  # This line loads your entire model from the .keras file.
8
  model = tf.keras.models.load_model("adversarially_trained_model.keras")
9
  print("output_shape:", model.output_shape) # e.g., (None, 5)
10
+ CLASS_NAMES = ["normal", "dos", "probe", "r2l", "u2r"]
 
11
 
12
  def preprocess_single_record(record: dict, scaler, df_reference: pd.DataFrame) -> np.ndarray:
13