NexusInstruments's picture
Update app.py
15d3310 verified
raw
history blame
2.49 kB
import streamlit as st
import sys, os
# ─── Make utils/ globally importable ─────────────────────────────
sys.path.append(os.path.abspath(os.path.dirname(__file__)))
# ─── Page Config ────────────────────────────────────────────────
st.set_page_config(page_title="Omniscient Dashboard", layout="wide")
# ─── Title ──────────────────────────────────────────────────────
st.title("🤖 Omniscient LLM Dashboard")
st.write("Welcome! This Space is running **Streamlit multipage mode** with Taipy integration.")
# ─── Metrics Section ────────────────────────────────────────────
col1, col2, col3 = st.columns(3)
# Active chat sessions
active_sessions = len(st.session_state.get("messages", []))
col1.metric("💬 Active Sessions", active_sessions)
# Uploaded files counter
uploaded_files = len(st.session_state.get("uploaded_files", []))
col2.metric("📂 Uploaded Files", uploaded_files)
# Error counter
errors = len(st.session_state.get("errors", []))
col3.metric("⚠️ Errors", errors)
st.success("System ready ✅")
# ─── Sidebar Navigation Guide ───────────────────────────────────
st.markdown("""
### 📑 Navigation
The sidebar is auto-generated by Streamlit multipage apps.
We group modules conceptually:
- **Chat**
- 💬 Chatbot
- **Analysis**
- 👁️ Omnieye → keyword/file analysis + web scraping
- 📜 Omnilog → log parsing, summaries, syslog tail
- 📂 ScriptDigest → script/documentation generator
- 📚 RAG → document upload + retrieval-augmented Q&A
- 🗂️ BulkDigest → batch multi-file AI summarizer
- **Tools**
- 🌐 Web Scraper → URL fetch & summarize
- 🖥️ SysMonitor → local system metrics from `/proc/`
- 🧪 Example → placeholder demo
""")
# ─── Embed Taipy Realtime Dashboard ───────────────────────────
st.subheader("📊 Realtime System Dashboard (Taipy)")
st.write("Live CPU and Memory metrics via Taipy GUI:")
st.components.v1.iframe("http://localhost:8080", height=600)