tts_labeling / components /dashboard_page.py
Navid Arabi
base app
0fb23b8
raw
history blame
784 Bytes
# components/dashboard_page.py
import gradio as gr
from components.header import Header
class DashboardPage:
"""UI elements + event wiring for the post-login dashboard."""
def __init__(self):
with gr.Column(visible=False) as self.container:
# ───── header (welcome + logout) ─────
self.header = Header()
# ─────────── main body ────────────
# ─────────────────── event wiring ────────────────────
def register_callbacks(self, login_page, session_state):
# Header handles its own logout button
self.header.register_callbacks(login_page, self, session_state)