Spaces:
Sleeping
Sleeping
create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
st.set_page_config(page_title="🛡️ Security Tools", layout="wide")
|
| 4 |
+
|
| 5 |
+
st.title("🛡️ Security Tools Dashboard")
|
| 6 |
+
st.markdown("Select an application from the sidebar.")
|
| 7 |
+
|
| 8 |
+
st.sidebar.title("🔍 Applications")
|
| 9 |
+
st.sidebar.markdown("Choose a tool:")
|
| 10 |
+
|
| 11 |
+
# Add your apps here
|
| 12 |
+
apps = {
|
| 13 |
+
"Malicious URL Detector": "malicious_url",
|
| 14 |
+
}
|
| 15 |
+
|
| 16 |
+
# Sidebar selection
|
| 17 |
+
selected_app = st.sidebar.selectbox("", options=list(apps.keys()))
|
| 18 |
+
|
| 19 |
+
# Dynamically import the selected app
|
| 20 |
+
page_module = __import__(f"pages.{apps[selected_app]}", fromlist=["app"])
|
| 21 |
+
page_module.app()
|