Spaces:
Sleeping
Sleeping
deploy rater (Docker/FastAPI): registration + completeness gate + /api/submit → dataset
Browse files- static/index.html +20 -24
static/index.html
CHANGED
|
@@ -140,7 +140,7 @@
|
|
| 140 |
.case-header .case-counter { color: var(--muted); font-size: 12px; }
|
| 141 |
.prompt-box { background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
|
| 142 |
padding: 14px 16px; line-height: 1.7; font-size: 15px; flex: 1;
|
| 143 |
-
min-width: 280px; max-width:
|
| 144 |
width: 100%; box-sizing: border-box; }
|
| 145 |
.prompt-box .label { font-size: 10px; text-transform: uppercase; color: var(--muted);
|
| 146 |
letter-spacing: 0.5px; margin-bottom: 8px; }
|
|
@@ -152,10 +152,11 @@
|
|
| 152 |
|
| 153 |
/* ---------- two-pane case layout ---------- */
|
| 154 |
.case-pane-wrap { flex: 1 1 auto; min-height: 0;
|
| 155 |
-
display: grid; gap:
|
| 156 |
-
/*
|
| 157 |
-
(
|
| 158 |
-
|
|
|
|
| 159 |
align-items: stretch; }
|
| 160 |
@media (max-width: 900px) {
|
| 161 |
.case-pane-wrap { grid-template-columns: 1fr; }
|
|
@@ -171,12 +172,14 @@
|
|
| 171 |
.left-pane > .prompt-box { flex: 1 1 auto; min-height: 5em;
|
| 172 |
max-height: none; overflow-y: auto; }
|
| 173 |
/* Right pane is the only scroll surface on this page. Grid of question
|
| 174 |
-
cards
|
| 175 |
-
|
|
|
|
| 176 |
.right-pane { min-width: 0; min-height: 0; max-height: 100%;
|
| 177 |
overflow-y: auto; padding-right: 4px;
|
| 178 |
display: grid; gap: 10px; align-content: start;
|
| 179 |
-
|
|
|
|
| 180 |
.right-pane > .dim-header { grid-column: 1 / -1; }
|
| 181 |
|
| 182 |
/* ---------- video tabs + single active video ---------- */
|
|
@@ -190,12 +193,12 @@
|
|
| 190 |
border-color: var(--accent); font-weight: 700; }
|
| 191 |
.video-tile { display: flex; flex-direction: column; gap: 6px; }
|
| 192 |
.video-tile.hidden { display: none; }
|
| 193 |
-
/* Video
|
| 194 |
-
|
| 195 |
-
|
| 196 |
.video-frame { position: relative; background: #000; border: 1px solid var(--border);
|
| 197 |
border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9;
|
| 198 |
-
max-height: 34vh; max-width:
|
| 199 |
.video-frame video { width: 100%; height: 100%; display: block; background: #000; }
|
| 200 |
.video-frame .empty-state { position: absolute; inset: 0; display: flex;
|
| 201 |
flex-direction: column; align-items: center; justify-content: center;
|
|
@@ -209,7 +212,7 @@
|
|
| 209 |
.video-controls { background: var(--panel); border: 1px solid var(--border);
|
| 210 |
border-radius: 5px; padding: 4px 8px; display: flex; gap: 6px;
|
| 211 |
align-items: center; flex-wrap: wrap; margin: 6px 0 0; font-size: 11px;
|
| 212 |
-
color: var(--muted); max-width:
|
| 213 |
.video-controls .ctl-btn { background: var(--panel-3); border: 1px solid var(--border-strong);
|
| 214 |
color: var(--fg); padding: 2px 8px; border-radius: 3px; font-size: 11px;
|
| 215 |
line-height: 1.4; cursor: pointer; font-family: inherit; min-height: 24px; }
|
|
@@ -460,10 +463,7 @@ const DIMENSIONS = [
|
|
| 460 |
questions: [
|
| 461 |
{ key: "realism",
|
| 462 |
name: "Realism",
|
| 463 |
-
desc: "
|
| 464 |
-
{ key: "physics",
|
| 465 |
-
name: "Physics",
|
| 466 |
-
desc: "Gravity, collisions, fluid / cloth dynamics behave plausibly." },
|
| 467 |
{ key: "motion_logic",
|
| 468 |
name: "Motion logic",
|
| 469 |
desc: "Does body and object motion flow smoothly and follow logical / believable patterns? No warping, teleporting, nonsensical, or impossible movements." },
|
|
@@ -572,7 +572,7 @@ const STRINGS = {
|
|
| 572 |
"dimensions_header": "Dimensions",
|
| 573 |
"dim_inst_short": "<strong>Instruction following</strong> — controllability, prompt adherence, no irrelevant frames.",
|
| 574 |
"dim_temporal_short": "<strong>Temporal consistency</strong> — person / object / environment stability (incl. anti-flicker).",
|
| 575 |
-
"dim_motion_short": "<strong>Realism</strong> — realism
|
| 576 |
"tips_header": "Tips",
|
| 577 |
"tip_keys": "Use <kbd>Space</kbd> to play / pause all videos in sync, <kbd>R</kbd> to restart, <kbd>L</kbd> to toggle loop.",
|
| 578 |
"tip_nav": "Use <kbd>←</kbd> / <kbd>→</kbd> (or <kbd>j</kbd> / <kbd>k</kbd>) to jump between cases.",
|
|
@@ -897,15 +897,13 @@ const RUBRIC_I18N = {
|
|
| 897 |
no_irrelevant_frames: { name: "无无关画面",
|
| 898 |
desc: "视频是否仅呈现提示中要求的内容?分数越高 = 越少出现与提示无关的帧或内容。" },
|
| 899 |
realism: { name: "真实感",
|
| 900 |
-
desc: "照片级真实感或风格忠实度
|
| 901 |
person_stability: { name: "人物稳定性",
|
| 902 |
desc: "面部、身份及身体比例在帧间保持一致。" },
|
| 903 |
object_stability: { name: "物体稳定性",
|
| 904 |
desc: "道具、服饰及物体随时间保持形状和位置。" },
|
| 905 |
environment_stability: { name: "环境稳定性",
|
| 906 |
desc: "背景、光照及场景布局在帧间保持连贯(包括无亮度、色彩或纹理闪烁)。" },
|
| 907 |
-
physics: { name: "物理规律",
|
| 908 |
-
desc: "重力、碰撞、流体/布料动力学是否合理。" },
|
| 909 |
motion_logic: { name: "运动逻辑",
|
| 910 |
desc: "身体与物体的运动是否流畅且符合逻辑?无形变、瞬移、不合常理或不可能的动作。" },
|
| 911 |
camera: { name: "相机运动",
|
|
@@ -925,15 +923,13 @@ const RUBRIC_I18N = {
|
|
| 925 |
no_irrelevant_frames: { name: "Без неуместни кадри",
|
| 926 |
desc: "Остава ли видеото в рамките на подканата? По-висок = по-малко / без кадри или съдържание, които не са поискани." },
|
| 927 |
realism: { name: "Реализъм",
|
| 928 |
-
desc: "
|
| 929 |
person_stability: { name: "Стабилност на хората",
|
| 930 |
desc: "Лица, идентичности и пропорции на тялото остават постоянни между кадрите." },
|
| 931 |
object_stability: { name: "Стабилност на обектите",
|
| 932 |
desc: "Реквизити, дрехи и обекти запазват форма и позиция във времето." },
|
| 933 |
environment_stability: { name: "Стабилност на средата",
|
| 934 |
desc: "Фон, осветление и подредба на сцената остават последователни между кадрите (включително липса на трептене на яркост, цвят или текстура)." },
|
| 935 |
-
physics: { name: "Физика",
|
| 936 |
-
desc: "Гравитация, сблъсъци, динамика на флуиди / тъкани се държат правдоподобно." },
|
| 937 |
motion_logic: { name: "Логика на движението",
|
| 938 |
desc: "Текат ли движенията на тела и обекти плавно и логично? Без деформации, телепортация, нелогични или невъзможни движения." },
|
| 939 |
camera: { name: "Камера",
|
|
|
|
| 140 |
.case-header .case-counter { color: var(--muted); font-size: 12px; }
|
| 141 |
.prompt-box { background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
|
| 142 |
padding: 14px 16px; line-height: 1.7; font-size: 15px; flex: 1;
|
| 143 |
+
min-width: 280px; max-width: var(--left-w); align-self: start;
|
| 144 |
width: 100%; box-sizing: border-box; }
|
| 145 |
.prompt-box .label { font-size: 10px; text-transform: uppercase; color: var(--muted);
|
| 146 |
letter-spacing: 0.5px; margin-bottom: 8px; }
|
|
|
|
| 152 |
|
| 153 |
/* ---------- two-pane case layout ---------- */
|
| 154 |
.case-pane-wrap { flex: 1 1 auto; min-height: 0;
|
| 155 |
+
display: grid; gap: 12px;
|
| 156 |
+
/* Left pane is sized to fit the unified video / controls / prompt width
|
| 157 |
+
(--left-w + a bit of breathing room); right pane takes the remaining
|
| 158 |
+
space and packs its cards from the left edge. */
|
| 159 |
+
grid-template-columns: calc(var(--left-w) + 24px) minmax(0, 1fr);
|
| 160 |
align-items: stretch; }
|
| 161 |
@media (max-width: 900px) {
|
| 162 |
.case-pane-wrap { grid-template-columns: 1fr; }
|
|
|
|
| 172 |
.left-pane > .prompt-box { flex: 1 1 auto; min-height: 5em;
|
| 173 |
max-height: none; overflow-y: auto; }
|
| 174 |
/* Right pane is the only scroll surface on this page. Grid of question
|
| 175 |
+
cards with FIXED-width columns that pack from the left, so the cards
|
| 176 |
+
visually align under the left pane's content instead of being stretched
|
| 177 |
+
to fill the column. */
|
| 178 |
.right-pane { min-width: 0; min-height: 0; max-height: 100%;
|
| 179 |
overflow-y: auto; padding-right: 4px;
|
| 180 |
display: grid; gap: 10px; align-content: start;
|
| 181 |
+
justify-content: start;
|
| 182 |
+
grid-template-columns: repeat(auto-fill, 230px); }
|
| 183 |
.right-pane > .dim-header { grid-column: 1 / -1; }
|
| 184 |
|
| 185 |
/* ---------- video tabs + single active video ---------- */
|
|
|
|
| 193 |
border-color: var(--accent); font-weight: 700; }
|
| 194 |
.video-tile { display: flex; flex-direction: column; gap: 6px; }
|
| 195 |
.video-tile.hidden { display: none; }
|
| 196 |
+
/* Video, control bar, and prompt-box all share --left-w as their max width
|
| 197 |
+
so they stack as a single coherent column inside the left pane. */
|
| 198 |
+
:root { --left-w: 620px; }
|
| 199 |
.video-frame { position: relative; background: #000; border: 1px solid var(--border);
|
| 200 |
border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9;
|
| 201 |
+
max-height: 34vh; max-width: var(--left-w); align-self: start; }
|
| 202 |
.video-frame video { width: 100%; height: 100%; display: block; background: #000; }
|
| 203 |
.video-frame .empty-state { position: absolute; inset: 0; display: flex;
|
| 204 |
flex-direction: column; align-items: center; justify-content: center;
|
|
|
|
| 212 |
.video-controls { background: var(--panel); border: 1px solid var(--border);
|
| 213 |
border-radius: 5px; padding: 4px 8px; display: flex; gap: 6px;
|
| 214 |
align-items: center; flex-wrap: wrap; margin: 6px 0 0; font-size: 11px;
|
| 215 |
+
color: var(--muted); max-width: var(--left-w); align-self: start; }
|
| 216 |
.video-controls .ctl-btn { background: var(--panel-3); border: 1px solid var(--border-strong);
|
| 217 |
color: var(--fg); padding: 2px 8px; border-radius: 3px; font-size: 11px;
|
| 218 |
line-height: 1.4; cursor: pointer; font-family: inherit; min-height: 24px; }
|
|
|
|
| 463 |
questions: [
|
| 464 |
{ key: "realism",
|
| 465 |
name: "Realism",
|
| 466 |
+
desc: "Visual + physical believability: photorealism or stylistic fidelity, plus plausible gravity, collisions, and fluid / cloth dynamics. No uncanny or broken artifacts." },
|
|
|
|
|
|
|
|
|
|
| 467 |
{ key: "motion_logic",
|
| 468 |
name: "Motion logic",
|
| 469 |
desc: "Does body and object motion flow smoothly and follow logical / believable patterns? No warping, teleporting, nonsensical, or impossible movements." },
|
|
|
|
| 572 |
"dimensions_header": "Dimensions",
|
| 573 |
"dim_inst_short": "<strong>Instruction following</strong> — controllability, prompt adherence, no irrelevant frames.",
|
| 574 |
"dim_temporal_short": "<strong>Temporal consistency</strong> — person / object / environment stability (incl. anti-flicker).",
|
| 575 |
+
"dim_motion_short": "<strong>Realism</strong> — realism (visual + physical), motion logic, camera motion.",
|
| 576 |
"tips_header": "Tips",
|
| 577 |
"tip_keys": "Use <kbd>Space</kbd> to play / pause all videos in sync, <kbd>R</kbd> to restart, <kbd>L</kbd> to toggle loop.",
|
| 578 |
"tip_nav": "Use <kbd>←</kbd> / <kbd>→</kbd> (or <kbd>j</kbd> / <kbd>k</kbd>) to jump between cases.",
|
|
|
|
| 897 |
no_irrelevant_frames: { name: "无无关画面",
|
| 898 |
desc: "视频是否仅呈现提示中要求的内容?分数越高 = 越少出现与提示无关的帧或内容。" },
|
| 899 |
realism: { name: "真实感",
|
| 900 |
+
desc: "视觉与物理上的真实可信:照片级真实感或风格忠实度,以及重力、碰撞、流体/布料动力学是否合理。无诡异感或失真伪影。" },
|
| 901 |
person_stability: { name: "人物稳定性",
|
| 902 |
desc: "面部、身份及身体比例在帧间保持一致。" },
|
| 903 |
object_stability: { name: "物体稳定性",
|
| 904 |
desc: "道具、服饰及物体随时间保持形状和位置。" },
|
| 905 |
environment_stability: { name: "环境稳定性",
|
| 906 |
desc: "背景、光照及场景布局在帧间保持连贯(包括无亮度、色彩或纹理闪烁)。" },
|
|
|
|
|
|
|
| 907 |
motion_logic: { name: "运动逻辑",
|
| 908 |
desc: "身体与物体的运动是否流畅且符合逻辑?无形变、瞬移、不合常理或不可能的动作。" },
|
| 909 |
camera: { name: "相机运动",
|
|
|
|
| 923 |
no_irrelevant_frames: { name: "Без неуместни кадри",
|
| 924 |
desc: "Остава ли видеото в рамките на подканата? По-висок = по-малко / без кадри или съдържание, които не са поискани." },
|
| 925 |
realism: { name: "Реализъм",
|
| 926 |
+
desc: "Визуална + физическа правдоподобност: фотореалистичност или стилова достоверност, плюс правдоподобна гравитация, сблъсъци и динамика на флуиди / тъкани. Без странни или счупени артефакти." },
|
| 927 |
person_stability: { name: "Стабилност на хората",
|
| 928 |
desc: "Лица, идентичности и пропорции на тялото остават постоянни между кадрите." },
|
| 929 |
object_stability: { name: "Стабилност на обектите",
|
| 930 |
desc: "Реквизити, дрехи и обекти запазват форма и позиция във времето." },
|
| 931 |
environment_stability: { name: "Стабилност на средата",
|
| 932 |
desc: "Фон, осветление и подредба на сцената остават последователни между кадрите (включително липса на трептене на яркост, цвят или текстура)." },
|
|
|
|
|
|
|
| 933 |
motion_logic: { name: "Логика на движението",
|
| 934 |
desc: "Текат ли движенията на тела и обекти плавно и логично? Без деформации, телепортация, нелогични или невъзможни движения." },
|
| 935 |
camera: { name: "Камера",
|