in experiments/veo-app/pages/veo.py [0:0]
def subtle_veo_input():
"""veo input"""
pagestate = me.state(PageState)
icon_style = me.Style(
display="flex",
flex_direction="column",
gap=3,
font_size=10,
align_items="center",
)
with me.box(
style=me.Style(
border_radius=16,
padding=me.Padding.all(8),
background=me.theme_var("secondary-container"),
display="flex",
width="100%",
)
):
with me.box(
style=me.Style(
flex_grow=1,
)
):
me.native_textarea(
autosize=True,
min_rows=10,
max_rows=13,
placeholder="video creation instructions",
style=me.Style(
padding=me.Padding(top=16, left=16),
background=me.theme_var("secondary-container"),
outline="none",
width="100%",
overflow_y="auto",
border=me.Border.all(
me.BorderSide(style="none"),
),
color=me.theme_var("foreground"),
flex_grow=1,
),
on_blur=on_blur_veo_prompt,
key=str(pagestate.veo_prompt_textarea_key),
value=pagestate.veo_prompt_placeholder,
)
with me.box(
style=me.Style(
display="flex",
flex_direction="column",
gap=15,
)
):
# do the veo
with me.content_button(
type="icon",
on_click=on_click_veo,
):
with me.box(style=icon_style):
me.icon("play_arrow")
me.text("Create")
# invoke gemini
with me.content_button(
type="icon",
disabled=True,
):
with me.box(style=icon_style):
me.icon("auto_awesome")
me.text("Rewriter")
# clear all of this
with me.content_button(
type="icon",
on_click=on_click_clear,
):
with me.box(style=icon_style):
me.icon("clear")
me.text("Clear")