Download web/src/lib/views.ts from Leon4gr45/openweb: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/spaces/Leon4gr45/openweb/resolve/main/web/src/lib/views.ts
- Command line
-
hf download hf://spaces/Leon4gr45/openweb/web/src/lib/views.ts
-
curl -L -o views.ts https://huggingface.co/spaces/Leon4gr45/openweb/resolve/main/web/src/lib/views.ts
1.14 kB
| import type { View } from "./api"; | |
| // Color follows the view (entity), in fixed categorical slot order - never re-assigned by rank or filter. | |
| export const VIEW_ORDER: View[] = ["text", "frame", "video", "audio", "fused", "hybrid"]; | |
| export const VIEW_INFO: Record<View, { label: string; color: string; blurb: string }> = { | |
| text: { label: "Text", color: "var(--series-1)", blurb: "Transcript only" }, | |
| frame: { label: "Frame", color: "var(--series-2)", blurb: "One keyframe image" }, | |
| video: { label: "Video", color: "var(--series-3)", blurb: "Frames at 1fps, no audio" }, | |
| audio: { label: "Audio", color: "var(--series-4)", blurb: "Raw 16kHz audio, no transcript" }, | |
| fused: { label: "Fused", color: "var(--series-5)", blurb: "Transcript + video + audio in one vector" }, | |
| hybrid: { label: "Hybrid", color: "var(--series-6)", blurb: "RRF of text, video & audio rankings" }, | |
| }; | |
| // Raw hexes for SVG/recharts (CSS vars don't resolve in some SVG attribute paths). | |
| export const VIEW_HEX: Record<View, string> = { | |
| text: "#3987e5", | |
| frame: "#d95926", | |
| video: "#199e70", | |
| audio: "#c98500", | |
| fused: "#d55181", | |
| hybrid: "#008300", | |
| }; | |