def lyria_content()

in experiments/veo-app/pages/lyria.py [0:0]


def lyria_content(app_state: me.state):
    """Lyria Mesop Page"""

    pagestate = me.state(PageState)

    with page_scaffold():  # pylint: disable=not-context-manager
        with page_frame():  # pylint: disable=not-context-manager
            header("Lyria", "music_note")

            with me.box(style=_BOX_STYLE):
                me.text(
                    "Prompt for music generation",
                    style=me.Style(font_weight=500),
                )
                me.box(style=me.Style(height=16))
                subtle_lyria_input()
                me.box(style=me.Style(height=24))

            me.box(style=me.Style(height=24))

            if pagestate.is_loading:
                with me.box(
                    style=me.Style(
                        display="grid",
                        justify_content="center",
                        justify_items="center",
                    )
                ):
                    me.progress_spinner()
            if pagestate.music_upload_uri:
                with me.box(
                    style=me.Style(
                        display="grid",
                        justify_content="center",
                        justify_items="center",
                    )
                ):
                    me.audio(src=pagestate.music_upload_uri)