Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,16 +1,46 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
|
|
|
|
| 3 |
st.set_page_config(page_title="Omniscient Dashboard", layout="wide")
|
| 4 |
|
| 5 |
-
|
|
|
|
| 6 |
st.write("Welcome! This Space is running **Streamlit multipage mode**.")
|
| 7 |
|
| 8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
st.success("System ready ✅")
|
| 10 |
|
|
|
|
| 11 |
st.markdown("""
|
| 12 |
-
|
| 13 |
-
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 16 |
""")
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
|
| 3 |
+
# ─── Page Config ───────────────────────────────────────────────
|
| 4 |
st.set_page_config(page_title="Omniscient Dashboard", layout="wide")
|
| 5 |
|
| 6 |
+
# ─── Title ─────────────────────────────────────────────────────
|
| 7 |
+
st.title("🤖 Omniscient OSINT Framework Dashboard")
|
| 8 |
st.write("Welcome! This Space is running **Streamlit multipage mode**.")
|
| 9 |
|
| 10 |
+
# ─── Metrics ───────────────────────────────────────────────────
|
| 11 |
+
col1, col2, col3 = st.columns(3)
|
| 12 |
+
|
| 13 |
+
# Active chat sessions
|
| 14 |
+
active_sessions = len(st.session_state.get("messages", []))
|
| 15 |
+
col1.metric("💬 Active Sessions", active_sessions)
|
| 16 |
+
|
| 17 |
+
# Uploaded files counter (Omnieye + Omnilog)
|
| 18 |
+
uploaded_files = len(st.session_state.get("uploaded_files", []))
|
| 19 |
+
col2.metric("📂 Uploaded Files", uploaded_files)
|
| 20 |
+
|
| 21 |
+
# Error counter
|
| 22 |
+
errors = len(st.session_state.get("errors", []))
|
| 23 |
+
col3.metric("⚠️ Errors", errors)
|
| 24 |
+
|
| 25 |
st.success("System ready ✅")
|
| 26 |
|
| 27 |
+
# ─── Sidebar Navigation Guide ──────────────────────────────────
|
| 28 |
st.markdown("""
|
| 29 |
+
### 📑 Navigation
|
| 30 |
+
The sidebar is auto-generated by Streamlit multipage apps.
|
| 31 |
+
We group modules conceptually:
|
| 32 |
+
|
| 33 |
+
- **Chat**
|
| 34 |
+
- 💬 Chatbot
|
| 35 |
+
|
| 36 |
+
- **Analysis**
|
| 37 |
+
- 👁️ Omnieye → keyword/file analysis + web scraping
|
| 38 |
+
- 📜 Omnilog → log parsing, summaries, syslog tail
|
| 39 |
+
- 📂 ScriptDigest → script/documentation generator
|
| 40 |
+
- 📚 RAG → document upload + retrieval-augmented Q&A
|
| 41 |
+
|
| 42 |
+
- **Tools**
|
| 43 |
+
- 🌐 Web Scraper → URL fetch & summarize
|
| 44 |
+
- 🖥️ SysMonitor → local system metrics from `/proc/`
|
| 45 |
+
- 🧪 Example → placeholder demo
|
| 46 |
""")
|