MrUtakata commited on
Commit
511e3f8
·
verified ·
1 Parent(s): 787e83a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -15,12 +15,12 @@ class_names = joblib.load("class_names.pkl")
15
 
16
  # Manually defined feature names (from your dataset)
17
  FEATURE_COLUMNS = [
18
- "flow_duration", "Header_Length", "Protocol Type", "Duration", "Rate", "Srate", "Drate",
19
  "fin_flag_number", "syn_flag_number", "rst_flag_number", "psh_flag_number", "ack_flag_number",
20
  "ece_flag_number", "cwr_flag_number", "ack_count", "syn_count", "fin_count", "urg_count",
21
- "rst_count", "HTTP", "HTTPS", "DNS", "Telnet", "SMTP", "SSH", "IRC", "TCP", "UDP", "DHCP",
22
- "ARP", "ICMP", "IPv", "LLC", "Tot sum", "Min", "Max", "AVG", "Std", "Tot size", "IAT",
23
- "Number", "Magnitue", "Radius", "Covariance", "Variance", "Weight"
24
  ]
25
 
26
  # Streamlit UI
 
15
 
16
  # Manually defined feature names (from your dataset)
17
  FEATURE_COLUMNS = [
18
+ "flow_duration", "header_length", "protocol_type", "duration", "rate", "srate", "drate",
19
  "fin_flag_number", "syn_flag_number", "rst_flag_number", "psh_flag_number", "ack_flag_number",
20
  "ece_flag_number", "cwr_flag_number", "ack_count", "syn_count", "fin_count", "urg_count",
21
+ "rst_count", "http", "https", "dns", "telnet", "smtp", "ssh", "irc", "tcp", "udp", "dhcp",
22
+ "arp", "icmp", "ipv", "llc", "tot_sum", "min", "max", "avg", "std", "tot_size", "iat",
23
+ "number", "magnitue", "radius", "covariance", "variance", "weight"
24
  ]
25
 
26
  # Streamlit UI