Spaces:
Sleeping
Sleeping
File size: 1,115 Bytes
aa5cda2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
"""Sidebar navigation"""
import streamlit as st
from utils import client
def render_sidebar():
"""Render sidebar with navigation and status"""
with st.sidebar:
st.title("π€ LLM Data Analyzer")
st.divider()
# Backend Status
st.subheader("Backend Status")
if st.button("π Check Status"):
with st.spinner("Checking..."):
health = client.health_check()
if health.get("status") == "healthy":
st.success(f"β
Connected - {health.get('llm_model')}")
else:
st.error("β Backend not responding")
st.divider()
# Settings
st.subheader("Settings")
backend_url = st.text_input(
"Backend URL",
value="http://localhost:8000",
help="Change if backend is running elsewhere"
)
st.divider()
# About
st.subheader("About")
st.caption("LLM Data Analyzer Frontend")
st.caption("Built with Streamlit & FastAPI")
|