Dubey404aasutosh/AI-Based-Network-Intrusion-Detection-System ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Streamlit app for a student cybersecurity project that detects DDoS traffic from network flow data and explains the result in plain English.

I want the app to let me paste an optional Grok API key in the sidebar, train a model from the included Friday Working Hours DDoS CSV dataset with one click, and then simulate a random packet from the test set so I can see whether it gets labeled BENIGN or DDoS. After the prediction, show a short explanation of why the model thinks that, and if the API key is provided, use the AI assistant to give a more helpful security style explanation.

Make the interface easy to use for someone who is not technical, with clear buttons, status messages, and readable results. Keep it focused on the demo flow, loading the dataset automatically and handling missing or invalid inputs gracefully. If you need to check current docs or best practices for Streamlit or the AI API, look them up online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab