logeswari's picture
msg
c50cea5
raw
history blame contribute delete
776 Bytes
import streamlit as st
from services.api import fetch_data
def render_home():
st.title("🏠 Welcome to the HR Analytics Home Page")
st.write("""
This dashboard provides insights into employee satisfaction, performance metrics,
training effectiveness, diversity & inclusion, and much more.
""")
# Fetch available API endpoints
home_data = fetch_data("/home")
if isinstance(home_data, dict):
st.subheader("πŸ“Œ Available API Endpoints")
st.json(home_data.get("endpoints", {}))
st.markdown("### πŸ” How to Use")
st.write("""
- Navigate to the **Analytics Dashboard** from the sidebar.
- Select an analysis type to fetch insights.
- Visualize results with interactive charts.
""")