"""Custom Gradio web UI for the Quant Research Environment.""" import gradio as gr from .theme import DARK_THEME, NEON_CSS from .tabs.readme_tab import build_readme_tab from .tabs.playground_tab import build_playground_tab from .tabs.traces_tab import build_traces_tab from .tabs.leaderboard_tab import build_leaderboard_tab from .tabs.tasks_tab import build_tasks_tab def build_ui(web_manager, metadata) -> gr.Blocks: """Build the full multi-tab Gradio application.""" with gr.Blocks( title="Quant Research Environment", ) as app: gr.HTML("""

Quant Research Environment

AI agents as quantitative researchers on real Indian equity data

""") with gr.Tabs(): with gr.Tab("\u25a4 README", id="readme"): build_readme_tab(metadata) with gr.Tab("\u25b6 Playground", id="play"): build_playground_tab(web_manager) with gr.Tab("\u21af Traces", id="traces"): build_traces_tab() with gr.Tab("\u2606 Leaderboard", id="lb"): build_leaderboard_tab() with gr.Tab("\u2630 Tasks", id="tasks"): build_tasks_tab() return app