2026-10-29 12:39:10 +05:30
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "UTF-8" >
< meta name = "viewport" content = "width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" >
< meta name = "theme-color" content = "#000000" >
< meta name = "color-scheme" content = "dark" >
< meta name = "description" content = "Vision · Liquid Vision & Prompt Studio powered by Qwen2.5-VL for reverse-engineering image prompts, OCR transcription, and dataset generation." >
< title > Vision · Liquid Vision & Prompt Studio</ title >
< link rel = "preconnect" href = "https://fonts.googleapis.com" >
< link rel = "preconnect" href = "https://fonts.gstatic.com" crossorigin >
< link href = "https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&family=JetBrains+Mono:wght@400;500;600;700&family=Sora:wght@400;500;600;700;800&display=swap" rel = "stylesheet" >
< link rel = "icon" href = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='.35' cy='.3' r='.85'%3E%3Cstop offset='0' stop-color='%2364B5F6'/%3E%3Cstop offset='0.5' stop-color='%237C4DFF'/%3E%3Cstop offset='1' stop-color='%2300E5FF'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='64' height='64' rx='16' fill='%2306060c'/%3E%3Cpath fill='url(%23g)' d='M32 10l5 12 13 2-9 9 2 13-11-6-11 6 2-13-9-9 13-2z'/%3E%3C/svg%3E" >
< link rel = "stylesheet" href = "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" >
< link rel = "stylesheet" href = "styles.css" >
</ head >
< body >
<!-- Ambient background glows -->
< div class = "ambient-glow glow-top-left" ></ div >
< div class = "ambient-glow glow-bottom-right" ></ div >
< div class = "app-root" >
<!-- ════════════════════════════════════════════════════════════════
TOP NAVIGATION BAR
════════════════════════════════════════════════════════════════ -->
< header class = "app-header glass-bar" >
< div class = "header-left" >
< div class = "brand-capsule" >
< div class = "brand-orb" >
< i class = "fa-solid fa-wand-magic-sparkles" ></ i >
</ div >
< div class = "brand-meta" >
< div class = "brand-title" > Vision AI</ div >
< div class = "brand-sub" > Liquid Prompt & OCR Studio</ div >
</ div >
</ div >
2026-10-29 12:49:01 +05:30
<!-- Unified Nav Tabs (Batch tab removed; everything is unified in Studio) -->
2026-10-29 12:39:10 +05:30
< nav class = "nav-tabs" id = "navTabs" >
< button class = "nav-tab active" data-tab = "studio" >
< i class = "fa-solid fa-cube" ></ i >
< span > Studio</ span >
</ button >
< button class = "nav-tab" data-tab = "presets" >
< i class = "fa-solid fa-sliders" ></ i >
< span > Presets</ span >
</ button >
< button class = "nav-tab" data-tab = "history" >
< i class = "fa-solid fa-clock-rotate-left" ></ i >
< span > History</ span >
< span class = "tab-badge" id = "historyCountBadge" > 0</ span >
</ button >
</ nav >
</ div >
< div class = "header-right" >
<!-- Model Status Capsule -->
< div class = "model-status-capsule glass-pill" id = "modelStatusCapsule" title = "Click to view model & hardware status" >
< span class = "status-dot online" id = "statusDot" ></ span >
< span class = "model-name" id = "modelNameDisplay" > Qwen2.5-VL-3B · 4-bit</ span >
</ div >
<!-- VRAM Meter -->
< div class = "vram-meter glass-pill" id = "vramMeter" title = "Live GPU VRAM telemetry" >
< i class = "fa-solid fa-microchip" ></ i >
< div class = "vram-info" >
< div class = "vram-labels" >
< span > VRAM</ span >
< span class = "vram-val" id = "vramText" > -- / -- GB</ span >
</ div >
< div class = "vram-bar-track" >
< div class = "vram-bar-fill" id = "vramFill" style = "width: 0%;" ></ div >
</ div >
</ div >
</ div >
<!-- Hardware & Model Settings Modal Button -->
< button class = "icon-btn glass-btn" id = "openSettingsBtn" title = "Hardware & Model Config" >
< i class = "fa-solid fa-gear" ></ i >
</ button >
</ div >
</ header >
<!-- ════════════════════════════════════════════════════════════════
MAIN CONTENT AREA
════════════════════════════════════════════════════════════════ -->
< main class = "app-main" >
<!-- ─────────────────────────────────────────────────────────────
2026-10-29 12:49:01 +05:30
UNIFIED STUDIO (Single Image, Multiple Images, Complete Folder)
2026-10-29 12:39:10 +05:30
───────────────────────────────────────────────────────────── -->
< section class = "tab-pane active" id = "pane-studio" >
< div class = "studio-layout" >
2026-10-29 12:49:01 +05:30
<!-- Left Column: Unified Intake & Parameter Controls -->
2026-10-29 12:39:10 +05:30
< div class = "studio-col input-col" >
2026-10-29 12:49:01 +05:30
<!-- Unified Dropzone Card -->
2026-10-29 12:39:10 +05:30
< div class = "glass-card dropzone-card" id = "dropzoneCard" >
2026-10-29 12:49:01 +05:30
<!-- Hidden File Inputs -->
< input type = "file" id = "imageFileInput" accept = "image/*" multiple style = "display: none;" >
< input type = "file" id = "folderFileInput" webkitdirectory directory multiple style = "display: none;" >
<!-- 1. Dropzone Empty / Intake View -->
2026-10-29 12:39:10 +05:30
< div class = "dropzone-empty" id = "dropzoneEmpty" >
< div class = "dropzone-icon" >
< i class = "fa-solid fa-cloud-arrow-up" ></ i >
</ div >
< div class = "dropzone-text" >
2026-10-29 12:49:01 +05:30
< div class = "primary-text" > Drag & drop single image, multiple images, or entire folder</ div >
< div class = "secondary-text" > or choose an intake method below · or paste with < kbd > Ctrl+V</ kbd ></ div >
2026-10-29 12:39:10 +05:30
</ div >
2026-10-29 12:49:01 +05:30
< div class = "intake-actions-row" >
< button type = "button" class = "intake-btn" id = "browseImagesBtn" >
< i class = "fa-regular fa-images" ></ i >
< span > Select Images</ span >
</ button >
< button type = "button" class = "intake-btn" id = "browseFolderBtn" >
< i class = "fa-solid fa-folder-open" ></ i >
< span > Select Folder</ span >
</ button >
< button type = "button" class = "intake-btn" id = "toggleServerPathBtn" >
< i class = "fa-solid fa-terminal" ></ i >
< span > Server Path</ span >
</ button >
</ div >
<!-- Server Folder Path Drawer -->
< div class = "server-path-drawer" id = "serverPathDrawer" style = "display: none;" >
< div class = "drawer-input-row" >
< div class = "input-with-icon" >
< i class = "fa-solid fa-folder" ></ i >
< input type = "text" id = "serverFolderPathInput" class = "glass-input" placeholder = "/home/creserver/Desktop/my_images_dataset" >
</ div >
< button type = "button" class = "primary-btn" id = "scanServerFolderBtn" style = "width: auto; padding: 10px 18px;" >
< i class = "fa-solid fa-magnifying-glass" ></ i >
< span > Scan</ span >
</ button >
</ div >
< label class = "glass-checkbox" style = "margin-top: 8px;" >
< input type = "checkbox" id = "serverRecursiveCb" >
< span class = "checkmark" ></ span >
< span > Scan subdirectories recursively</ span >
</ label >
</ div >
2026-10-29 12:39:10 +05:30
< div class = "dropzone-formats" > JPG · PNG · WEBP · BMP · TIFF · AVIF</ div >
</ div >
2026-10-29 12:49:01 +05:30
<!-- 2. Single Image Focus View -->
< div class = "dropzone-filled" id = "singleImageFilled" style = "display: none;" >
2026-10-29 12:39:10 +05:30
< div class = "preview-wrap" >
< img id = "previewImg" src = "" alt = "Preview" >
2026-10-29 12:49:01 +05:30
< button class = "remove-img-btn" id = "clearSingleImgBtn" title = "Clear image" >
2026-10-29 12:39:10 +05:30
< i class = "fa-solid fa-xmark" ></ i >
</ button >
</ div >
2026-10-29 12:49:01 +05:30
< div class = "preview-meta" >
< span class = "meta-pill" id = "imgDimensionsPill" >< i class = "fa-regular fa-image" ></ i > -- × --</ span >
2026-10-29 12:39:10 +05:30
< span class = "meta-pill" id = "imgSizePill" >< i class = "fa-solid fa-weight-hanging" ></ i > -- KB</ span >
< span class = "meta-pill" id = "imgNamePill" >< i class = "fa-solid fa-tag" ></ i > filename.png</ span >
2026-10-29 12:49:01 +05:30
< button type = "button" class = "link-btn" id = "addMoreFilesBtn" style = "margin-left: auto;" >
< i class = "fa-solid fa-plus" ></ i > Add more to queue
</ button >
</ div >
</ div >
<!-- 3. Multi-Image Queue View -->
< div class = "queue-container" id = "queueContainer" style = "display: none;" >
< div class = "queue-toolbar" >
< div class = "queue-info" >
< span class = "queue-badge" >< i class = "fa-solid fa-layer-group" ></ i > Queue: < b id = "queueTotalCount" > 0</ b ></ span >
< div class = "queue-filters" id = "queueFilterTabs" >
< button class = "filter-tab active" data-filter = "all" > All (< span id = "filterAllCount" > 0</ span > )</ button >
< button class = "filter-tab" data-filter = "pending" > Pending (< span id = "filterPendingCount" > 0</ span > )</ button >
< button class = "filter-tab" data-filter = "done" > Done (< span id = "filterDoneCount" > 0</ span > )</ button >
</ div >
</ div >
< div class = "queue-actions" >
< button type = "button" class = "intake-btn mini" id = "queueAddImagesBtn" title = "Add more files" >
< i class = "fa-solid fa-plus" ></ i > Add
</ button >
< button type = "button" class = "intake-btn mini danger" id = "clearQueueBtn" title = "Clear all" >
< i class = "fa-solid fa-trash-can" ></ i > Clear
</ button >
</ div >
</ div >
<!-- Focused Preview in Multi-mode -->
< div class = "queue-focus-preview" id = "queueFocusPreview" >
< div class = "queue-preview-box" >
< img id = "queueFocusImg" src = "" alt = "Focus preview" >
</ div >
< div class = "queue-focus-meta" >
< div class = "focus-title" id = "queueFocusFilename" > filename.png</ div >
< div class = "focus-sub" id = "queueFocusSub" > Select an image thumbnail below to inspect</ div >
</ div >
</ div >
<!-- Chunked / Paginated Thumbnail Filmstrip -->
< div class = "queue-filmstrip-wrap" >
< div class = "queue-filmstrip" id = "queueFilmstrip" ></ div >
< div class = "queue-pagination" id = "queuePagination" style = "display: none;" >
< button class = "page-btn" id = "prevPageBtn" >< i class = "fa-solid fa-chevron-left" ></ i ></ button >
< span class = "page-info" id = "pageInfoText" > Chunk 1 / 1</ span >
< button class = "page-btn" id = "nextPageBtn" >< i class = "fa-solid fa-chevron-right" ></ i ></ button >
</ div >
2026-10-29 12:39:10 +05:30
</ div >
</ div >
</ div >
2026-10-29 12:49:01 +05:30
<!-- Analysis Configuration Card -->
2026-10-29 12:39:10 +05:30
< div class = "glass-card mode-card" >
< div class = "card-header" >
< div class = "card-title" >
< i class = "fa-solid fa-wand-magic" ></ i >
< span > Analysis Mode</ span >
</ div >
2026-10-29 12:49:01 +05:30
< span class = "card-badge" id = "selectedModeBadge" > Prompt (Flux / MJ)</ span >
2026-10-29 12:39:10 +05:30
</ div >
< div class = "mode-grid" id = "modeGrid" >
< button class = "mode-btn active" data-mode = "prompt" >
< i class = "fa-solid fa-compass-drafting" ></ i >
< span class = "mode-title" > Prompt (Flux/MJ)</ span >
< span class = "mode-desc" > T2I prompt synthesis</ span >
</ button >
< button class = "mode-btn" data-mode = "flux" >
< i class = "fa-solid fa-camera" ></ i >
< span class = "mode-title" > Flux Detailed</ span >
< span class = "mode-desc" > Lens, framing & style</ span >
</ button >
< button class = "mode-btn" data-mode = "detailed" >
< i class = "fa-solid fa-eye" ></ i >
< span class = "mode-title" > Dense Vision</ span >
< span class = "mode-desc" > Thorough visual analysis</ span >
</ button >
< button class = "mode-btn" data-mode = "ocr" >
< i class = "fa-solid fa-font" ></ i >
< span class = "mode-title" > OCR Text</ span >
< span class = "mode-desc" > Extract all visible text</ span >
</ button >
< button class = "mode-btn" data-mode = "tags" >
< i class = "fa-solid fa-tags" ></ i >
< span class = "mode-title" > Keywords</ span >
< span class = "mode-desc" > Comma-separated tags</ span >
</ button >
< button class = "mode-btn" data-mode = "short" >
< i class = "fa-solid fa-quote-left" ></ i >
< span class = "mode-title" > Caption</ span >
< span class = "mode-desc" > One-sentence summary</ span >
</ button >
< button class = "mode-btn" data-mode = "story" >
< i class = "fa-solid fa-book-open" ></ i >
< span class = "mode-title" > Story Narrative</ span >
< span class = "mode-desc" > Creative atmosphere</ span >
</ button >
< button class = "mode-btn" data-mode = "custom" >
< i class = "fa-solid fa-pen-nib" ></ i >
< span class = "mode-title" > Custom Instruction</ span >
< span class = "mode-desc" > Ask anything about image</ span >
</ button >
</ div >
2026-10-29 12:58:08 +05:30
<!-- Refined Liquid Glass Model Instruction Console -->
< div class = "instruction-console" id = "instructionConsole" >
< div class = "instruction-console-header" >
< div class = "instruction-header-left" >
< div class = "instruction-icon-glow" >
< i class = "fa-solid fa-terminal" ></ i >
</ div >
< div class = "instruction-title-group" >
< span class = "instruction-title" > Model Directives & Prompt</ span >
< span class = "instruction-mode-badge" id = "instructionModeTag" >
< i class = "fa-solid fa-circle-dot" ></ i > < span id = "instructionModeName" > Prompt (Flux / MJ)</ span >
</ span >
</ div >
</ div >
< div class = "instruction-header-actions" >
< button type = "button" class = "console-action-btn" id = "copyPromptBtn" title = "Copy prompt to clipboard" >
< i class = "fa-regular fa-copy" ></ i >
< span > Copy</ span >
</ button >
< button type = "button" class = "console-action-btn" id = "clearPromptBtn" title = "Clear instructions" >
< i class = "fa-solid fa-xmark" ></ i >
< span > Clear</ span >
</ button >
< button type = "button" class = "console-action-btn console-action-reset" id = "resetPromptBtn" title = "Reset to preset default" >
< i class = "fa-solid fa-rotate-left" ></ i >
< span > Reset</ span >
</ button >
< button type = "button" class = "console-action-btn console-action-expand" id = "togglePromptSizeBtn" title = "Expand / Collapse editor height" >
< i class = "fa-solid fa-up-right-and-down-left-from-center" id = "togglePromptIcon" ></ i >
</ button >
</ div >
</ div >
< div class = "instruction-textarea-wrapper" >
< textarea id = "promptInput" class = "refined-prompt-textarea" rows = "5" spellcheck = "false" placeholder = "Enter instructions, visual query, or formatting guidelines for the Vision model..." ></ textarea >
</ div >
<!-- Quick Directive Modifiers -->
< div class = "instruction-directives-bar" >
< div class = "directives-bar-title" >
< i class = "fa-solid fa-bolt" ></ i >
< span > Modifiers:</ span >
</ div >
< div class = "directive-chips-list" >
< button type = "button" class = "directive-chip" data-directive = "Describe the lighting setup, color palette, highlights, and shadows in detail." >
< i class = "fa-solid fa-sun" ></ i > Lighting & Color
</ button >
< button type = "button" class = "directive-chip" data-directive = "Specify the camera angle, lens focal length, depth of field, and shot composition." >
< i class = "fa-solid fa-camera" ></ i > Camera & Framing
</ button >
< button type = "button" class = "directive-chip" data-directive = "Extract and transcribe all visible text verbatim, preserving line breaks." >
< i class = "fa-solid fa-file-lines" ></ i > Strict OCR
</ button >
< button type = "button" class = "directive-chip" data-directive = "Format as comma-separated descriptive Danbooru/LoRA training tags." >
< i class = "fa-solid fa-tags" ></ i > LoRA Tags
</ button >
< button type = "button" class = "directive-chip" data-directive = "Format the output strictly as a clean, valid JSON object." >
< i class = "fa-solid fa-code" ></ i > JSON Output
</ button >
< button type = "button" class = "directive-chip" data-directive = "Keep the response ultra-concise, strictly under 30 words." >
< i class = "fa-solid fa-compress" ></ i > Under 30 words
</ button >
</ div >
</ div >
< div class = "instruction-console-footer" >
< div class = "console-footer-tip" >
< i class = "fa-regular fa-lightbulb" ></ i > Custom edits apply across single & batch generation
</ div >
< div class = "console-footer-counter" >
< span class = "char-token-pill" id = "promptStatsBadge" > 0 chars • ~0 tokens</ span >
</ div >
</ div >
2026-10-29 12:39:10 +05:30
</ div >
2026-10-29 12:49:01 +05:30
<!-- Dataset / Batch Checkboxes -->
< div class = "checkbox-group" style = "margin-bottom: 14px;" >
< label class = "glass-checkbox" >
< input type = "checkbox" id = "saveSidecarCb" checked >
< span class = "checkmark" ></ span >
< span > Save sidecar < kbd > < image> .txt</ kbd > files alongside images (ideal for LoRA training)</ span >
</ label >
< label class = "glass-checkbox" >
< input type = "checkbox" id = "skipExistingCb" checked >
< span class = "checkmark" ></ span >
< span > Skip already processed images (auto-resume support)</ span >
</ label >
</ div >
2026-10-29 12:39:10 +05:30
<!-- Advanced Tuning Accordion -->
< div class = "accordion glass-accordion" >
< button class = "accordion-header" id = "accordionToggle" >
< span >< i class = "fa-solid fa-sliders" ></ i > Generation Parameters</ span >
< i class = "fa-solid fa-chevron-down accordion-arrow" ></ i >
</ button >
< div class = "accordion-body" id = "accordionBody" >
< div class = "param-row" >
< div class = "param-meta" >
< span class = "param-name" > Max Tokens</ span >
< span class = "param-val" id = "maxTokensVal" > 512</ span >
</ div >
< input type = "range" id = "maxTokensRange" min = "32" max = "2048" step = "32" value = "512" class = "glass-slider" >
</ div >
< div class = "param-row" >
< div class = "param-meta" >
< span class = "param-name" > Temperature</ span >
< span class = "param-val" id = "tempVal" > 0.20</ span >
</ div >
< input type = "range" id = "tempRange" min = "0.0" max = "1.0" step = "0.05" value = "0.2" class = "glass-slider" >
</ div >
< div class = "param-row" >
< div class = "param-meta" >
< span class = "param-name" > Top-P Sampling</ span >
< span class = "param-val" id = "topPVal" > 0.90</ span >
</ div >
< input type = "range" id = "topPRange" min = "0.1" max = "1.0" step = "0.05" value = "0.9" class = "glass-slider" >
</ div >
</ div >
</ div >
2026-10-29 12:49:01 +05:30
<!-- Unified Action CTA Row -->
< div class = "cta-actions-row" >
< button class = "primary-btn glow-btn" id = "mainActionBtn" >
< span class = "btn-spinner" id = "btnSpinner" style = "display: none;" >
< i class = "fa-solid fa-circle-notch fa-spin" ></ i >
</ span >
< span class = "btn-content" id = "btnContent" >
< i class = "fa-solid fa-sparkles" ></ i >
< span id = "btnText" > Generate Prompt / Text</ span >
< kbd class = "shortcut-kbd" id = "shortcutKbd" > Ctrl+Enter</ kbd >
</ span >
</ button >
< button class = "action-btn danger-btn" id = "pauseQueueBtn" style = "display: none;" title = "Stop queue" >
< i class = "fa-solid fa-stop" ></ i >
< span > Stop</ span >
</ button >
</ div >
2026-10-29 12:39:10 +05:30
</ div >
</ div >
2026-10-29 12:49:01 +05:30
<!-- Right Column: Unified Output & Results -->
2026-10-29 12:39:10 +05:30
< div class = "studio-col output-col" >
< div class = "glass-card output-card" >
2026-10-29 12:49:01 +05:30
<!-- Output Header with Dynamic Actions -->
2026-10-29 12:39:10 +05:30
< div class = "card-header" >
< div class = "card-title" >
< i class = "fa-solid fa-sparkles" ></ i >
2026-10-29 12:49:01 +05:30
< span id = "outputCardTitle" > Generated Output</ span >
2026-10-29 12:39:10 +05:30
</ div >
2026-10-29 12:49:01 +05:30
<!-- Action Buttons: Single Mode -->
< div class = "output-actions" id = "singleOutputActions" >
2026-10-29 12:39:10 +05:30
< button class = "action-btn" id = "copyResultBtn" title = "Copy text to clipboard" >
< i class = "fa-regular fa-copy" ></ i >
< span > Copy</ span >
</ button >
< button class = "action-btn" id = "downloadTxtBtn" title = "Download as .txt sidecar" >
< i class = "fa-solid fa-file-arrow-down" ></ i >
< span > .txt</ span >
</ button >
< button class = "action-btn" id = "downloadJsonBtn" title = "Download output as JSON" >
< i class = "fa-solid fa-code" ></ i >
< span > JSON</ span >
</ button >
</ div >
2026-10-29 12:49:01 +05:30
<!-- Action Buttons: Multi-Image / Queue Mode -->
< div class = "output-actions" id = "queueOutputActions" style = "display: none;" >
< button class = "action-btn glow-action" id = "downloadAllZipBtn" title = "Download complete ZIP of all .txt sidecars" >
< i class = "fa-solid fa-file-zipper" ></ i >
< span > Download ZIP</ span >
</ button >
< button class = "action-btn" id = "exportCsvBtn" title = "Export CSV summary" >
< i class = "fa-solid fa-file-csv" ></ i >
< span > CSV</ span >
</ button >
< button class = "action-btn" id = "exportJsonBtn" title = "Export JSON summary" >
< i class = "fa-solid fa-code" ></ i >
< span > JSON</ span >
</ button >
< button class = "action-btn" id = "copyAllPromptsBtn" title = "Copy all prompts to clipboard" >
< i class = "fa-solid fa-copy" ></ i >
< span > Copy All</ span >
</ button >
</ div >
2026-10-29 12:39:10 +05:30
</ div >
2026-10-29 12:49:01 +05:30
<!-- Live Queue Progress Bar (When processing multiple images) -->
< div class = "progress-block" id = "queueProgressBlock" style = "display: none;" >
< div class = "progress-meta" >
< span class = "progress-status" id = "queueProgressStatus" > Processing queue...</ span >
< span class = "progress-numbers" id = "queueProgressNumbers" > 0 / 0 (0%)</ span >
</ div >
< div class = "progress-bar-track" >
< div class = "progress-bar-fill" id = "queueProgressBarFill" style = "width: 0%;" ></ div >
</ div >
< div class = "progress-current-file" >
< span > Current: </ span >
< strong id = "queueProgressCurrentFile" > --</ strong >
< span id = "queueTimeEst" style = "margin-left: auto;" ></ span >
</ div >
</ div >
<!-- Output Content Area -->
2026-10-29 12:39:10 +05:30
< div class = "output-content" >
2026-10-29 12:49:01 +05:30
<!-- Empty / Ready Placeholder -->
2026-10-29 12:39:10 +05:30
< div class = "output-placeholder" id = "outputPlaceholder" >
< div class = "placeholder-icon" >
< i class = "fa-solid fa-wand-sparkles" ></ i >
</ div >
< div class = "placeholder-title" > Ready for inference</ div >
2026-10-29 12:49:01 +05:30
< div class = "placeholder-desc" > Upload a single image, select multiple images, or drop an entire folder to synthesize generative prompts, tags, or OCR.</ div >
2026-10-29 12:39:10 +05:30
</ div >
2026-10-29 12:49:01 +05:30
<!-- Single Active Result View -->
2026-10-29 12:39:10 +05:30
< div class = "output-result" id = "outputResult" style = "display: none;" >
< div class = "result-text-container" >
< pre class = "result-text" id = "resultText" ></ pre >
</ div >
< div class = "result-footer" >
< div class = "result-chips" >
< span class = "chip" id = "chipTime" >< i class = "fa-solid fa-stopwatch" ></ i > --s</ span >
< span class = "chip" id = "chipTokens" >< i class = "fa-solid fa-bars-staggered" ></ i > -- tokens</ span >
< span class = "chip" id = "chipMode" >< i class = "fa-solid fa-layer-group" ></ i > prompt</ span >
2026-10-29 12:49:01 +05:30
< span class = "chip" id = "chipDim" >< i class = "fa-solid fa-vector-square" ></ i > -- × --</ span >
2026-10-29 12:39:10 +05:30
</ div >
</ div >
</ div >
2026-10-29 12:49:01 +05:30
<!-- Live Stream of Queue Results (Cards / Table) -->
< div class = "queue-results-stream" id = "queueResultsStream" style = "display: none;" >
< div class = "stream-header" >
< span class = "stream-title" > Live Processed Items</ span >
< span class = "stream-sub" id = "streamSubText" > 0 items processed</ span >
</ div >
< div class = "stream-items-list" id = "streamItemsList" ></ div >
</ div >
2026-10-29 12:39:10 +05:30
</ div >
</ div >
</ div >
</ div >
</ section >
<!-- ─────────────────────────────────────────────────────────────
2026-10-29 12:49:01 +05:30
TAB 2: PRESETS LIBRARY
2026-10-29 12:39:10 +05:30
───────────────────────────────────────────────────────────── -->
< section class = "tab-pane" id = "pane-presets" >
< div class = "presets-container" >
< div class = "section-hero" >
< h2 > Vision Analysis Presets</ h2 >
< p > Pre-engineered instructions optimized for text-to-image prompts, camera aesthetics, OCR, and rich image captions.</ p >
</ div >
< div class = "presets-grid" id = "presetsCardsGrid" >
<!-- Populated dynamically via app.js -->
</ div >
</ div >
</ section >
<!-- ─────────────────────────────────────────────────────────────
2026-10-29 12:49:01 +05:30
TAB 3: HISTORY & GALLERY
2026-10-29 12:39:10 +05:30
───────────────────────────────────────────────────────────── -->
< section class = "tab-pane" id = "pane-history" >
< div class = "history-container" >
< div class = "section-hero" >
< div class = "hero-with-action" >
< div >
< h2 > Recent Generations</ h2 >
2026-10-29 12:49:01 +05:30
< p > Browse recent inferences, inspect full results, and re-copy or load into studio.</ p >
2026-10-29 12:39:10 +05:30
</ div >
< button class = "danger-btn" id = "clearHistoryBtn" >
< i class = "fa-solid fa-trash-can" ></ i >
< span > Clear History</ span >
</ button >
</ div >
</ div >
< div class = "history-grid" id = "historyGrid" >
< div class = "history-empty" id = "historyEmpty" >
< i class = "fa-regular fa-clock" ></ i >
< div > No previous generations found.</ div >
</ div >
</ div >
</ div >
</ section >
</ main >
<!-- ════════════════════════════════════════════════════════════════
HARDWARE & MODEL SETTINGS MODAL
════════════════════════════════════════════════════════════════ -->
< div class = "modal-backdrop" id = "settingsModal" style = "display: none;" >
< div class = "modal-card glass-modal" >
< div class = "modal-header" >
< div class = "modal-title" >
< i class = "fa-solid fa-microchip" ></ i >
< span > Hardware & Model Configuration</ span >
</ div >
< button class = "modal-close" id = "closeSettingsBtn" >
< i class = "fa-solid fa-xmark" ></ i >
</ button >
</ div >
< div class = "modal-body" >
<!-- GPU Telemetry Section -->
< div class = "settings-group" >
< div class = "group-title" > GPU Telemetry</ div >
< div class = "telemetry-cards" >
< div class = "telemetry-card" >
< div class = "telemetry-label" > Device</ div >
< div class = "telemetry-val" id = "gpuDeviceName" > --</ div >
</ div >
< div class = "telemetry-card" >
< div class = "telemetry-label" > VRAM Usage</ div >
< div class = "telemetry-val" id = "gpuVramUsage" > -- / -- GB</ div >
</ div >
< div class = "telemetry-card" >
< div class = "telemetry-label" > Utilization</ div >
< div class = "telemetry-val" id = "gpuVramPercent" > --%</ div >
</ div >
</ div >
</ div >
<!-- Model Configuration Section -->
< div class = "settings-group" >
< div class = "group-title" > Model Architecture</ div >
< div class = "field-item" >
< label for = "modelIdInput" class = "field-label" > Model Identifier</ label >
< input type = "text" id = "modelIdInput" class = "glass-input" value = "Qwen/Qwen2.5-VL-3B-Instruct" >
</ div >
< div class = "field-item" >
< label for = "quantSelect" class = "field-label" > Quantization Mode</ label >
< select id = "quantSelect" class = "glass-select" >
< option value = "auto" > Auto (4-bit NF4 on 8GB GPU, bf16 on 16GB+)</ option >
< option value = "4bit" > 4-bit NF4 (BitsAndBytes ~2.2 GB VRAM)</ option >
< option value = "8bit" > 8-bit (BitsAndBytes ~4.0 GB VRAM)</ option >
< option value = "bf16" > bfloat16 (Full Precision ~7.0 GB VRAM)</ option >
< option value = "fp16" > float16</ option >
</ select >
</ div >
</ div >
</ div >
< div class = "modal-footer" >
< button class = "secondary-btn" id = "unloadModelBtn" >
< i class = "fa-solid fa-broom" ></ i >
< span > Free VRAM (Unload)</ span >
</ button >
< button class = "primary-btn" id = "applyModelBtn" >
< i class = "fa-solid fa-arrows-rotate" ></ i >
< span > Apply & Reload Model</ span >
</ button >
</ div >
</ div >
</ div >
<!-- ════════════════════════════════════════════════════════════════
TOAST CONTAINER
════════════════════════════════════════════════════════════════ -->
< div class = "toast-container" id = "toastContainer" ></ div >
</ div >
< script src = "app.js" ></ script >
</ body >
</ html >