Spaces:
Running on Zero
Running on Zero
Download assets/paper.css from FanLR/GroundingPI: direct link, hf CLI and curl.
- Browser
- Download file 23.2 kB
-
https://huggingface.co/spaces/FanLR/GroundingPI/resolve/main/assets/paper.css
- Command line
-
hf download hf://spaces/FanLR/GroundingPI/assets/paper.css
-
curl -L -o paper.css https://huggingface.co/spaces/FanLR/GroundingPI/resolve/main/assets/paper.css
23.2 kB
| @font-face{font-family:Manrope;src:url(data:font/ttf;base64,__MANROPE_DATA__) format('truetype');font-weight:200 800;font-display:swap} | |
| :root{--purple:#7651aa;--purple-deep:#563a80;--lime:#afd064;--ink:#292633;--muted:#686371;--line:#e5e1eb;--paper:#f3f1f7;--lavender:#ebe5f4;--canvas:#e9e6ef;--ease:cubic-bezier(.16,1,.3,1);--ui:Manrope,"PingFang SC","Microsoft YaHei",sans-serif} | |
| body{background:var(--paper);color-scheme:light} | |
| .gradio-container{max-width:1660px;margin:0 auto;padding:22px 32px 18px;font-family:var(--ui);background:var(--paper);color:var(--ink);--body-text-color:var(--ink);--body-text-color-subdued:var(--muted);--block-background-fill:#fff;--input-background-fill:#fff;--block-border-color:var(--line);--input-border-color:var(--line);--block-radius:12px;--color-accent:var(--purple);--checkbox-background-color-selected:var(--purple)} | |
| *{scrollbar-width:thin;scrollbar-color:#c9bdd9 transparent;box-sizing:border-box} | |
| ::selection{background:#dcd0ed;color:#40275e}input,textarea{caret-color:var(--purple)} | |
| button,a,input,textarea{font-family:var(--ui)}:is(button,a,input,textarea):focus-visible{outline:2px solid var(--purple);outline-offset:3px} | |
| button{-webkit-tap-highlight-color:transparent}button:disabled{cursor:wait}.gap{gap:12px}.html-container{padding:0} | |
| .form{background:transparent;border:0;box-shadow:none;overflow:visible} | |
| .studio-header{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:4px 0 20px}.studio-identity{display:flex;align-items:center;gap:16px;min-width:0} | |
| .xpeng-logo{display:block;width:118px;height:auto;object-fit:contain;border-radius:3px;margin:0}.brand-divider{height:28px;width:1px;background:#d6cfdf;margin:0 3px} | |
| .studio-identity h1{font:800 28px/1.2 var(--ui);letter-spacing:-.035em;color:var(--purple-deep);margin:0;white-space:nowrap}.studio-name{color:var(--muted);font:500 13px var(--ui);padding-top:6px;white-space:nowrap} | |
| .header-note{font:500 12px var(--ui);color:var(--muted);display:flex;gap:22px;align-items:center;white-space:nowrap}.header-note>span{padding:6px 10px;border:1px solid #d7cede;border-radius:6px;font-size:11px;color:var(--purple-deep)} | |
| #controls{gap:0;min-width:0;margin-bottom:5px}#route-select{padding:0;border:0;background:transparent;min-width:0;overflow:visible} | |
| #route-select .wrap{display:flex;flex-wrap:nowrap;gap:2px;position:relative;overflow-x:auto;scrollbar-width:none;padding:4px 2px 12px} | |
| #route-select label{flex:1 0 auto;display:flex;justify-content:center;align-items:center;min-height:42px;padding:10px 16px;border:0;box-shadow:none;background:transparent;color:#655c72;font:650 12px var(--ui);white-space:nowrap;border-radius:9px;gap:0;z-index:1;transition:color 180ms} | |
| #route-select label:hover{color:var(--purple-deep);background:#eae4f1}#route-select label:has(input:checked){color:#fff;background:var(--purple-deep)}#route-select.enhanced label:has(input:checked){background:transparent} | |
| #route-select input,#view-toggle input{position:absolute;width:0;height:0;opacity:0;margin:0}#route-select label:has(input:focus-visible),#view-toggle label:has(input:focus-visible){outline:2px solid var(--purple);outline-offset:2px} | |
| .active-tab-indicator{position:absolute;left:0;top:0;background:var(--purple-deep);border-radius:9px;pointer-events:none;z-index:0;transition:transform 340ms var(--ease);height:42px} | |
| #console{flex-wrap:nowrap;gap:0;align-items:stretch;background:#fff;border:0;border-radius:16px;overflow:hidden;box-shadow:0 16px 48px #44365312} | |
| #visual-stage{flex:1 1 0;min-width:0;gap:0;padding:0;background:#fff;position:relative} | |
| #visual-stage>*,#sidebar>.block{flex-grow:0} | |
| #stage-toolbar{flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:16px;padding:14px 20px;background:#fff;min-height:66px} | |
| #view-toggle{min-width:0;flex:1 1 auto;padding:0;background:transparent;border:0}#view-toggle .wrap{display:flex;gap:2px;position:relative;isolation:isolate;padding:3px;width:fit-content;background:#f1eef5;border-radius:9px} | |
| #view-toggle label{min-height:32px;padding:7px 15px;justify-content:center;border:0;border-radius:6px;background:transparent;color:#665d73;box-shadow:none;font:600 12px var(--ui);gap:0;z-index:1;transition:color 160ms} | |
| #view-toggle label:hover{color:var(--purple-deep);background:#e7dfef}#view-toggle label:has(input:checked){background:#fff;color:var(--purple-deep);box-shadow:0 2px 5px #3c2b5410}#view-toggle.enhanced label:has(input:checked){background:transparent;box-shadow:none}#view-toggle .active-tab-indicator{background:#fff;border-radius:6px;box-shadow:0 2px 5px #3c2b5410;z-index:-1} | |
| #upload-button{flex:0 0 104px;min-width:104px;min-height:36px;background:#fff;border:1px solid var(--line);border-radius:7px;box-shadow:none;padding:8px 12px;color:var(--purple-deep);font:650 12px var(--ui);transition:background 150ms,border-color 150ms}#upload-button:hover{background:#f4f0f8;border-color:#ad97c7} | |
| #canvas-viewport{position:relative;overflow:hidden;border-radius:0;background:var(--canvas);min-width:0;gap:0;padding:20px 24px 48px;isolation:isolate} | |
| #stage-image{position:relative;isolation:isolate;min-width:0;height:clamp(350px,48vh,570px);min-height:0;background:transparent;border:0;padding:0;border-radius:0;box-shadow:none;transform-origin:50% 50%;transition:transform 430ms var(--ease);overflow:visible;touch-action:pan-y} | |
| #canvas-viewport.is-panning #stage-image{transition:none}#canvas-viewport.is-zoomed #stage-image{touch-action:none;cursor:grab}#canvas-viewport.is-panning #stage-image{cursor:grabbing} | |
| #stage-image img{object-fit:contain;border-radius:3px;box-shadow:0 9px 22px #251b3b13}#stage-image .image-container{background:transparent}#stage-image .buttons{opacity:0;transition:opacity 160ms}#stage-image:hover .buttons,#stage-image:focus-within .buttons{opacity:1} | |
| #canvas-chrome{position:absolute;bottom:0;left:0;width:100%;min-height:0;z-index:8;pointer-events:none}.canvas-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:8px 18px;color:#655c72;font:500 10px ui-monospace,monospace;min-height:44px}.image-dimensions{font-variant-numeric:tabular-nums;white-space:nowrap} | |
| .zoom-tools{display:flex;align-items:center;gap:3px;background:#fff;border-radius:8px;padding:2px 4px;box-shadow:0 3px 9px #3121410c;pointer-events:auto}.zoom-tools button{border:0;background:transparent;color:var(--purple-deep);width:30px;height:30px;display:grid;place-items:center;border-radius:5px;cursor:pointer}.zoom-tools button:hover{background:var(--lavender)}.zoom-tools button:disabled{opacity:.35;cursor:default!important}.zoom-tools svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.zoom-value{font:650 10px ui-monospace,monospace;min-width:42px;text-align:center;color:var(--purple-deep)}.tool-divider{width:1px;height:15px;background:var(--line);margin:0 3px} | |
| #query-row{display:flex;flex-wrap:nowrap;align-items:center;gap:16px;padding:17px 22px;background:#fff;border-bottom:1px solid var(--line)}#query-dock{flex:1 1 0;min-width:0;background:transparent;border:0;padding:0;border-radius:0;box-shadow:none} | |
| #query-dock label>span{font:750 12px var(--ui);color:var(--purple-deep);margin-bottom:7px}#query-dock textarea{border:0;box-shadow:none;padding:0;background:transparent;color:var(--ink);font:500 12px/1.65 var(--ui);resize:none}#query-dock textarea::placeholder{color:var(--muted);opacity:1}#query-dock:focus-within label>span{color:#8059b1} | |
| #run-button{flex:0 0 136px;min-width:136px;min-height:46px;border:0;border-radius:9px;background:var(--lime);color:#2c4018;font:800 14px var(--ui);padding:12px 18px;box-shadow:none;transition:background 150ms,transform 150ms var(--ease)}#run-button:hover:not(:disabled){background:#bfdc81}#run-button:active:not(:disabled){transform:scale(.975)}#run-button:disabled{background:var(--lavender);color:var(--purple-deep);opacity:1}#run-button.is-waiting{position:relative;color:transparent}#run-button.is-waiting::after{content:"Grounding…";position:absolute;inset:0;display:grid;place-items:center;color:var(--purple-deep)} | |
| #sandbox-panel{padding:15px 22px 19px;background:#fff;gap:10px;min-width:0}.film-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#62596f;font:700 11px var(--ui)}.film-heading small{font:500 10px var(--ui);color:var(--muted)} | |
| #case-gallery{background:transparent;border:0;padding:0;min-height:0}#case-gallery .grid-wrap{border:0}#case-gallery .grid-container{gap:12px;padding:3px;grid-template-rows:1fr;height:100%} | |
| #case-gallery .thumbnail-item{aspect-ratio:auto;height:112px;min-height:0} | |
| #case-gallery .thumbnail-item{display:flex;flex-direction:row;align-items:center;gap:11px;border:1px solid var(--line);border-radius:9px;background:#fff;padding:5px;overflow:hidden;transition:border-color 180ms,background 180ms}#case-gallery .thumbnail-item:hover{border-color:#b49dcf;background:#faf7fd}#case-gallery .thumbnail-item.selected{border:2px solid #a387c3;background:#f5f0fa;padding:4px}#case-gallery .thumbnail-item img{width:62%;height:100%;object-fit:cover;border-radius:5px;min-width:0;flex:0 0 62%}#case-gallery .caption-label{position:static;white-space:normal;word-break:normal;overflow-wrap:anywhere;background:transparent;color:var(--purple-deep);font:700 11px/1.6 var(--ui);padding:4px;max-width:36%;text-align:left!important;box-shadow:none} | |
| #sidebar{flex:0 0 290px;min-width:290px;padding:22px;background:#fcfbfe;border-left:1px solid var(--line);gap:16px}.inspector-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.inspector-heading h2{font:750 17px var(--ui);color:var(--ink);margin:0;letter-spacing:-.02em}.live-mark{font:500 10px var(--ui);color:#746b7e} | |
| #targets-content{flex-grow:0}.target-chips{max-height:232px}#sidebar:has(.evidence-detail:not([hidden])) .target-chips{max-height:184px} | |
| #stage-status{min-height:32px}.stage-status{display:flex;align-items:flex-start;gap:7px;font:550 11px/1.65 var(--ui);color:#5b6e40;overflow-wrap:anywhere;flex-wrap:wrap}.stage-status>span{flex:1;min-width:0}.stage-status i,.api-status i{width:6px;height:6px;border-radius:50%;background:#8b8790;flex-shrink:0;margin-top:6px}.stage-status.ready i,.api-status.online i{background:#729642}.stage-status.reference,.stage-status.busy{color:var(--purple-deep)}.stage-status.reference i{background:var(--purple)}.stage-status.error,.api-status.offline{color:#a53246}.stage-status.error i,.api-status.offline i{background:#b54559}.stage-status.busy i{width:10px;height:10px;border:2px solid #cbbbdc;border-top-color:var(--purple);background:transparent;animation:wait-turn .9s linear infinite;margin-top:4px}.wait-clock{font:600 11px ui-monospace,monospace;font-variant-numeric:tabular-nums;color:var(--purple-deep)}.tab-hidden .stage-status.busy i{animation-play-state:paused} | |
| #targets-panel{min-width:0;flex:1 1 0;gap:0}.empty-targets{min-height:205px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;color:#71617f}.empty-targets svg{width:40px;height:40px;color:#9175b0;margin-bottom:5px}.empty-targets>b{font:700 13px var(--ui);color:#5e4f70}.empty-targets>small{font:500 11px/1.8 var(--ui);color:var(--muted);max-width:23ch} | |
| .targets-summary{font:550 11px var(--ui);display:flex;align-items:baseline;gap:5px;color:var(--muted)}.targets-summary b{font:750 18px var(--ui);color:var(--purple-deep);font-variant-numeric:tabular-nums}.targets-summary>span{margin-left:auto;font-size:10px}.target-chips{display:flex;flex-direction:column;gap:2px;max-height:282px;overflow:auto;padding:3px;margin:12px -3px 0} | |
| .target-chip{display:flex;align-items:center;gap:9px;min-height:33px;padding:7px 9px;background:transparent;border:0;border-radius:6px;font:550 11px var(--ui);color:#594e67;cursor:pointer;transition:background 160ms,color 160ms}.target-chip:hover{background:#f0eaf7}.target-chip[aria-pressed=true]{background:#e8ddf3;color:#4f326f}.target-chip>span{flex:1;text-align:left;overflow-wrap:anywhere}.target-chip i{width:6px;height:6px;border:1.5px solid #a186bc;border-radius:2px;flex-shrink:0}.target-chip[aria-pressed=true] i{background:var(--purple);border-color:var(--purple)}.target-chip b{font:600 10px ui-monospace,monospace;color:#756385} | |
| .focus-help{font:500 10px/1.6 var(--ui);color:var(--muted);display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px}.clear-focus{font:650 10px var(--ui);background:none;border:0;color:var(--purple-deep);cursor:pointer;text-decoration:underline;text-underline-offset:4px;padding:4px}.clear-focus[hidden],.evidence-detail[hidden]{display:none}.targets-caption{font:550 9px/1.7 var(--ui);color:var(--muted);margin-top:9px;padding-top:8px;border-top:1px solid var(--line)} | |
| #detail-panel:has(.evidence-detail[hidden]){display:none}.evidence-detail{padding:12px 0 3px;border-top:1px solid var(--line);animation:detail-in 360ms var(--ease)}.detail-heading{display:flex;justify-content:space-between;align-items:center;font:650 11px var(--ui);color:var(--purple-deep);margin-bottom:9px}.detail-heading small{font:500 9px var(--ui);color:var(--muted)}.detail-image{height:130px;border-radius:6px;overflow:hidden;background-color:var(--canvas);background-repeat:no-repeat}.detail-coordinates{font:500 9px/1.6 ui-monospace,monospace;color:var(--muted);margin-top:6px;overflow-wrap:anywhere} | |
| #metrics-panel{flex-grow:0;min-width:0;gap:8px;padding-top:15px;border-top:1px solid var(--line)}.inspector-subheading{font:700 12px var(--ui);color:#53465f;margin:0}.metrics-list{margin:0;font:500 10px var(--ui)}.metrics-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:5px 0}.metrics-list dt{color:var(--muted)}.metrics-list dd{margin:0;text-align:right;color:#55485f;font:600 10px ui-monospace,monospace;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.metrics-list>div:nth-child(1) dd{font-family:var(--ui)} | |
| #source-details{border:0;border-top:1px solid var(--line);border-radius:0;padding:10px 0 0;background:transparent;overflow:hidden}#source-details .label-wrap{width:calc(100% - 4px);min-height:28px;font:600 10px var(--ui);color:var(--muted)}.source-meta{display:grid;gap:6px;font:500 10px/1.6 var(--ui);color:var(--muted);overflow-wrap:anywhere;padding-top:8px}.source-meta>span{font-size:9px;color:var(--purple-deep);font-weight:700;margin-top:5px}.source-meta small{font-size:10px;line-height:1.7} | |
| #service-panel{flex-grow:0;gap:2px;padding-top:12px;border-top:1px solid var(--line)}.api-status{display:flex;gap:6px;align-items:center;font:600 10px var(--ui);color:#607245;flex-wrap:wrap}.api-status i{margin:0}.api-status span{font:500 9px ui-monospace,monospace;color:var(--muted);margin-left:auto}#health-button{background:none;border:0;box-shadow:none;color:var(--muted);text-align:left;font:500 10px var(--ui);min-height:28px;padding:5px 0;text-decoration:underline;text-underline-offset:4px;text-decoration-color:#b6a9c3} | |
| .focus-layer{position:absolute;pointer-events:none;z-index:5;overflow:visible}.focus-dimmer{fill:#251437;opacity:.5;animation:focus-dim 320ms var(--ease)}.focus-outline{fill:none;stroke:#d1ef91;stroke-width:2;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #2228);stroke-dasharray:1;stroke-dashoffset:0;animation:focus-ink 440ms var(--ease)}.focus-caption{position:absolute;top:10px;left:10px;z-index:6;display:flex;align-items:center;gap:10px;max-width:calc(100% - 20px);padding:6px 7px 6px 12px;border-radius:7px;background:#fff;box-shadow:0 4px 14px #22153720;color:var(--purple-deep);font:650 11px var(--ui)}.focus-caption span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.focus-caption button{display:grid;place-items:center;border:0;background:var(--lavender);color:var(--purple-deep);border-radius:5px;width:28px;height:28px;cursor:pointer;flex-shrink:0} | |
| #console[aria-busy=true] #canvas-viewport{cursor:progress}#controls[inert]{opacity:.65}#console .wrap.center.full{display:none} | |
| #prompt-console,#output-console{border:0;border-bottom:1px solid #ded7e8;border-radius:0;background:transparent;padding:4px 2px}#prompt-console>.label-wrap,#output-console>.label-wrap{font:600 11px var(--ui);color:#6b5d7b;min-height:33px}#prompt-console textarea,#output-console textarea{font:12px/1.7 ui-monospace,monospace}.console-note{font:500 11px/1.6 var(--ui);color:var(--muted);margin-top:8px} | |
| .studio-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;font:500 10px var(--ui);color:#736b7d;padding:8px 0 2px}.studio-footer i{font-style:normal;margin-left:12px;color:#807887}.gradio-container>footer{display:none} | |
| @keyframes wait-turn{to{transform:rotate(360deg)}}@keyframes focus-dim{from{opacity:0}to{opacity:.5}}@keyframes focus-ink{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}@keyframes detail-in{from{clip-path:inset(0 0 100% 0);opacity:.5}to{clip-path:inset(0);opacity:1}} | |
| @media(min-width:1500px){#sidebar{flex-basis:310px;min-width:310px;padding:26px}.target-chips{max-height:315px}#stage-image{height:clamp(420px,50vh,610px)}} | |
| @media(max-width:1100px){.header-note{display:none}#route-select label{padding:10px 13px;font-size:11px}#sidebar{flex-basis:252px;min-width:252px;padding:18px}#canvas-viewport{padding:18px 18px 46px}#query-row{padding:16px;gap:12px}#sandbox-panel{padding:14px 16px}#case-gallery .thumbnail-item{flex-direction:column;gap:1px}#case-gallery .thumbnail-item img{width:100%;flex:1 1 0;min-height:0}#case-gallery .caption-label{max-width:100%;line-height:1.4;text-align:center}#stage-image{height:390px}#run-button{flex-basis:112px;min-width:112px}} | |
| @media(max-width:760px){.studio-header{padding:8px 0 15px}.studio-identity{gap:11px}.xpeng-logo{width:90px}.brand-divider{height:22px;margin:0 1px}.studio-identity h1{font-size:24px}.studio-name{display:none}#controls{margin:0}#route-select label{font-size:12px;min-height:42px;padding:10px 16px}#console{flex-direction:column;border-radius:12px}#sidebar{flex:auto;min-width:0;width:100%;padding:20px;border-left:0;border-top:1px solid var(--line);gap:14px}#visual-stage{min-width:0}#stage-toolbar{padding:12px;gap:8px}#view-toggle label{padding:8px 10px;min-height:38px;font-size:11px}#upload-button{min-width:85px;flex-basis:85px;font-size:11px;min-height:40px;padding:8px}#canvas-viewport{padding:14px 12px 46px}#stage-image{height:330px}.canvas-tools{padding:8px 12px}.zoom-tools button{width:32px;height:32px}#query-row{align-items:stretch;gap:10px;padding:15px}#query-dock textarea{font-size:12px}#run-button{min-width:85px;flex-basis:85px;padding:10px;font-size:12px}#sandbox-panel{padding:14px 12px}#case-gallery{height:120px}#case-gallery .grid-container{gap:7px}#case-gallery .caption-label{font-size:10px}.film-heading small{font-size:9px}.target-chips{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:250px;gap:4px}.target-chip{min-height:42px}.empty-targets{min-height:150px}.evidence-detail{max-width:360px}.detail-image{height:170px}.metrics-list{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px}.metrics-list>div{align-items:flex-start;flex-direction:column;gap:5px;padding:5px 0}.metrics-list dd{text-align:left}.studio-footer{align-items:flex-start;flex-direction:column;gap:5px;line-height:1.7}.studio-footer i{display:block;margin-left:0}#source-details .label-wrap{min-height:38px}#health-button{min-height:38px}.focus-help,.targets-caption{font-size:10px}} | |
| @media(max-width:430px){#stage-image{height:282px}.studio-identity h1{font-size:22px}.xpeng-logo{width:85px}.canvas-tools .image-dimensions{font-size:9px}.film-heading{font-size:10px}.film-heading small{max-width:150px;text-align:right}} | |
| @media(max-width:760px){#case-gallery .thumbnail-item{height:96px}#query-row{align-items:center}#run-button{min-height:48px;height:48px}#sidebar:has(.evidence-detail:not([hidden])) .target-chips{max-height:230px}} | |
| @media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none;scroll-behavior:auto;transition-duration:0ms}.stage-status.busy i{background:var(--purple);border:0}#run-button:active:not(:disabled){transform:none}} | |