Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,20 +1,24 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
| 2 |
|
| 3 |
-
# ───
|
|
|
|
|
|
|
|
|
|
| 4 |
st.set_page_config(page_title="Omniscient Dashboard", layout="wide")
|
| 5 |
|
| 6 |
-
# ─── Title
|
| 7 |
-
st.title("🤖 Omniscient
|
| 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
|
| 18 |
uploaded_files = len(st.session_state.get("uploaded_files", []))
|
| 19 |
col2.metric("📂 Uploaded Files", uploaded_files)
|
| 20 |
|
|
@@ -24,7 +28,7 @@ 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.
|
|
@@ -38,6 +42,7 @@ We group modules conceptually:
|
|
| 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
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import sys, os
|
| 3 |
|
| 4 |
+
# ─── Make utils/ globally importable ─────────────────────────────
|
| 5 |
+
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
|
| 6 |
+
|
| 7 |
+
# ─── Page Config ────────────────────────────────────────────────
|
| 8 |
st.set_page_config(page_title="Omniscient Dashboard", layout="wide")
|
| 9 |
|
| 10 |
+
# ─── Title ──────────────────────────────────────────────────────
|
| 11 |
+
st.title("🤖 Omniscient LLM Dashboard")
|
| 12 |
st.write("Welcome! This Space is running **Streamlit multipage mode**.")
|
| 13 |
|
| 14 |
+
# ─── Metrics Section ────────────────────────────────────────────
|
| 15 |
col1, col2, col3 = st.columns(3)
|
| 16 |
|
| 17 |
# Active chat sessions
|
| 18 |
active_sessions = len(st.session_state.get("messages", []))
|
| 19 |
col1.metric("💬 Active Sessions", active_sessions)
|
| 20 |
|
| 21 |
+
# Uploaded files counter
|
| 22 |
uploaded_files = len(st.session_state.get("uploaded_files", []))
|
| 23 |
col2.metric("📂 Uploaded Files", uploaded_files)
|
| 24 |
|
|
|
|
| 28 |
|
| 29 |
st.success("System ready ✅")
|
| 30 |
|
| 31 |
+
# ─── Sidebar Navigation Guide ───────────────────────────────────
|
| 32 |
st.markdown("""
|
| 33 |
### 📑 Navigation
|
| 34 |
The sidebar is auto-generated by Streamlit multipage apps.
|
|
|
|
| 42 |
- 📜 Omnilog → log parsing, summaries, syslog tail
|
| 43 |
- 📂 ScriptDigest → script/documentation generator
|
| 44 |
- 📚 RAG → document upload + retrieval-augmented Q&A
|
| 45 |
+
- 🗂️ BulkDigest → batch multi-file AI summarizer
|
| 46 |
|
| 47 |
- **Tools**
|
| 48 |
- 🌐 Web Scraper → URL fetch & summarize
|