Spaces:
Running
Running
UI: prompt as one line inside the settings card (no big prompt area), more space under the title and above the examples
Browse files104 unmodified lines1051061071081091101118 unmodified lines12012112212312412512612712812913013113213313481 unmodified lines21621721821922022153 unmodified lines275276277278279280281282283284285286287104 unmodified linesfooter { display:none !important; }/* header: PyBot's title block, RD Flow's pill links */#pd-head { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; margin-bottom:8px; }#pd-head .t { min-width:0; flex:1 1 320px; }#pd-head h1 { margin:0; font:600 clamp(34px,5vw,58px)/1 var(--pd-pixel); letter-spacing:.02em; color:var(--pd-ink); }#pd-head .sub { margin:10px 0 0; font:300 clamp(19px,2.3vw,26px)/1.25 var(--pd-serif); color:var(--pd-muted); overflow-wrap:anywhere; }8 unmodified lines/* the two panes */#pd-stage { gap:clamp(20px,4vw,56px) !important; align-items:flex-start; }.pd-kicker { margin:0 0 4px !important; color:var(--pd-muted); font:500 13px/1.3 var(--pd-pixel); letter-spacing:.08em; text-transform:uppercase; }.pd-kicker p { margin:0 !important; font:inherit !important; color:inherit !important; }/* prompt as a big sentence (RD Flow) */#pd-prompt, #pd-prompt .wrap, #pd-prompt label { background:transparent !important; border:0 !important; box-shadow:none !important; padding:0 !important; }#pd-prompt textarea { font:300 clamp(26px,3.2vw,44px)/1.12 var(--pd-serif) !important; letter-spacing:-.015em; color:var(--pd-ink) !important;background:transparent !important; border:0 !important; border-bottom:2px solid var(--pd-line) !important; border-radius:0 !important;padding:0 0 10px !important; box-shadow:none !important; caret-color:var(--pd-accent); overflow-wrap:break-word; resize:none; }#pd-prompt textarea:focus { border-bottom-color:var(--pd-accent) !important; }/* controls: a surface card with hairlines */.pd-card { background:var(--pd-surface) !important; border:1px solid var(--pd-line) !important; border-radius:16px !important;81 unmodified lines#pd-seed, #pd-size { flex:0 0 128px !important; width:128px !important; min-width:0 !important; max-width:128px !important; }#pd-seed input, #pd-size input { font-size:13px !important; }#pd-seed label span, #pd-size label span { font-size:11px !important; color:var(--pd-muted) !important; }#pd-hint { font:13px/1.5 var(--pd-mono); color:var(--pd-muted); margin:-4px 0 4px; }#pd-foot { margin:14px 0 0; font:13px/1.5 var(--pd-mono); color:var(--pd-muted); overflow-wrap:anywhere; }#pd-foot a { color:inherit; text-underline-offset:2px; }53 unmodified linesgr.HTML(HEADER)with gr.Row(elem_id="pd-stage", equal_height=False):with gr.Column(scale=5, min_width=0, elem_id="pd-left"):prompt = gr.Textbox(value=EXAMPLES[0], lines=2, max_lines=6, show_label=False, container=False,placeholder="a fox in a cape next to a waving flag", elem_id="pd-prompt")gr.Markdown("Name a style in the prompt (watercolor, oil painting, ink and wash, linocut, pencil, anime). Defaults to pixel art.",elem_id="pd-hint")style = gr.State("pixel")search = gr.State(False)with gr.Column(elem_classes="pd-card"):with gr.Row(elem_id="pd-small"):seed = gr.Number(label="Seed", value=0, precision=0, min_width=90, scale=0, elem_id="pd-seed")size = gr.Dropdown([512, 768], value=512, label="Size", min_width=90, scale=0, elem_id="pd-size")104 unmodified lines1051061071081091101118 unmodified lines12012112212312412512612712812913013113213313413581 unmodified lines21721821922022122222322422553 unmodified lines279280281282283284285286287288289290104 unmodified linesfooter { display:none !important; }/* header: PyBot's title block, RD Flow's pill links */#pd-head { display:flex; align-items:flex-end; justify-content:space-between; flex-wrap:wrap; gap:12px 24px; margin-bottom:clamp(28px,4.5vw,56px); }#pd-head .t { min-width:0; flex:1 1 320px; }#pd-head h1 { margin:0; font:600 clamp(34px,5vw,58px)/1 var(--pd-pixel); letter-spacing:.02em; color:var(--pd-ink); }#pd-head .sub { margin:10px 0 0; font:300 clamp(19px,2.3vw,26px)/1.25 var(--pd-serif); color:var(--pd-muted); overflow-wrap:anywhere; }8 unmodified lines/* the two panes */#pd-stage { gap:clamp(20px,4vw,56px) !important; align-items:flex-start; }#pd-stage { margin-top:clamp(24px,4vw,48px) !important; }.pd-kicker { margin:0 0 4px !important; color:var(--pd-muted); font:500 13px/1.3 var(--pd-pixel); letter-spacing:.08em; text-transform:uppercase; }.pd-kicker p { margin:0 !important; font:inherit !important; color:inherit !important; }/* prompt: one plain line inside the settings card */#pd-prompt textarea { font:16px/1.4 var(--pd-body, system-ui, sans-serif) !important; color:var(--pd-ink) !important;background:var(--pd-bg) !important; border:1px solid var(--pd-line) !important; border-radius:10px !important;padding:9px 12px !important; box-shadow:none !important; caret-color:var(--pd-accent); resize:none; }#pd-prompt textarea:focus { border-color:var(--pd-accent) !important; }#pd-prompt label span, #pd-prompt [data-testid="block-info"] { font-size:11px !important; color:var(--pd-muted) !important; }/* controls: a surface card with hairlines */.pd-card { background:var(--pd-surface) !important; border:1px solid var(--pd-line) !important; border-radius:16px !important;81 unmodified lines#pd-seed, #pd-size { flex:0 0 128px !important; width:128px !important; min-width:0 !important; max-width:128px !important; }#pd-seed input, #pd-size input { font-size:13px !important; }#pd-seed label span, #pd-size label span { font-size:11px !important; color:var(--pd-muted) !important; }/* breathing room: the examples sit further below the controls */.pd-kicker.pd-after { margin-top:clamp(28px,4vw,48px) !important; }#pd-actions { margin-bottom:4px; }#pd-hint { font:13px/1.5 var(--pd-mono); color:var(--pd-muted); margin:-4px 0 4px; }#pd-foot { margin:14px 0 0; font:13px/1.5 var(--pd-mono); color:var(--pd-muted); overflow-wrap:anywhere; }#pd-foot a { color:inherit; text-underline-offset:2px; }53 unmodified linesgr.HTML(HEADER)with gr.Row(elem_id="pd-stage", equal_height=False):with gr.Column(scale=5, min_width=0, elem_id="pd-left"):style = gr.State("pixel")search = gr.State(False)with gr.Column(elem_classes="pd-card"):prompt = gr.Textbox(value=EXAMPLES[0], lines=1, max_lines=3, label="Prompt",info="Name a style (watercolor, oil painting, ink and wash, linocut, pencil, anime). Defaults to pixel art.",placeholder="a fox in a cape next to a waving flag", elem_id="pd-prompt")with gr.Row(elem_id="pd-small"):seed = gr.Number(label="Seed", value=0, precision=0, min_width=90, scale=0, elem_id="pd-seed")size = gr.Dropdown([512, 768], value=512, label="Size", min_width=90, scale=0, elem_id="pd-size")
app.py+14-11