import gradio as gr
from gradio_sync3dcompare import Sync3DCompare

with gr.Blocks(title="Sync3DCompare Demo") as demo:
    gr.Markdown("# Sync3DCompare — Synchronized 3D Comparison Viewer")
    gr.Markdown(
        "Compare 3D reconstruction outputs side-by-side with synchronized orbit, pan, and zoom. "
        "Rotate one view and all others follow."
    )
    Sync3DCompare(
        label="Upload & Compare",
        render_mode="points",
        sync_camera=True,
        point_size=2.0,
        height=500,
    )

if __name__ == "__main__":
    demo.launch()
