"""Finetuner Studio โ application entry point.""" from __future__ import annotations import gradio as gr from .core.registry import TASKS, mlx_available from .ui import tab_dataset, tab_export, tab_model, tab_monitor, tab_playground, tab_train BANNER = """ # ๐๏ธ Finetuner Studio **Low-code fine-tuning on Apple Silicon** ยท powered by [mlx-tune](https://github.com/ARahim3/mlx-tune) ยท {n_tasks} training paradigms, zero boilerplate """ def build_app() -> gr.Blocks: ok, reason = mlx_available() health = "๐ข mlx-tune ready" if ok else f"๐ก GUI-only mode โ {reason}" with gr.Blocks(title="Finetuner Studio") as app: gr.Markdown(BANNER.format(n_tasks=len(TASKS))) gr.Markdown(f"`{health}`") with gr.Tabs(): tab_model.build(app) tab_dataset.build(app) tab_train.build(app) tab_monitor.build(app) tab_playground.build(app) tab_export.build(app) gr.Markdown( "