Upload index.html
Browse files- web/index.html +94 -100
web/index.html
CHANGED
|
@@ -8,119 +8,108 @@
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<div class="app-shell">
|
| 11 |
-
<
|
| 12 |
-
<div class="brand">
|
| 13 |
<div class="brand-icon">🚀</div>
|
| 14 |
-
<div><strong>Agentic Space Factory</strong><span>Private Space builder</span></div>
|
| 15 |
-
</div>
|
| 16 |
-
<nav class="main-nav">
|
| 17 |
-
<button class="nav-item active" data-view="build">Run build</button>
|
| 18 |
-
<button class="nav-item" data-view="validate">Test Space</button>
|
| 19 |
-
</nav>
|
| 20 |
-
<div class="sidebar-note">
|
| 21 |
-
<strong>Workflow</strong>
|
| 22 |
-
<ol>
|
| 23 |
-
<li>Build a private Space from a model card.</li>
|
| 24 |
-
<li>Set hardware manually if needed.</li>
|
| 25 |
-
<li>Run a live smoke test.</li>
|
| 26 |
-
</ol>
|
| 27 |
-
</div>
|
| 28 |
-
<div class="storage-card">
|
| 29 |
-
<div><span class="status-dot" id="sidebarBucketDot"></span><strong>Run storage</strong></div>
|
| 30 |
-
<p>Runs, logs and artifacts stay in the connected user bucket.</p>
|
| 31 |
-
<button class="secondary" id="checkBucketSide">Check / Create bucket</button>
|
| 32 |
-
</div>
|
| 33 |
-
</aside>
|
| 34 |
-
|
| 35 |
-
<main class="main">
|
| 36 |
-
<header class="topbar">
|
| 37 |
<div>
|
| 38 |
<h1>Agentic Space Factory</h1>
|
| 39 |
<p>Turn a Hugging Face model card into a private, testable Space.</p>
|
| 40 |
</div>
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
</
|
| 46 |
-
|
|
|
|
|
|
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
<section class="auth-panel" id="authPanel" hidden></section>
|
| 49 |
<section class="operation-status" id="operationStatus" hidden></section>
|
| 50 |
|
| 51 |
<section data-section="build" class="build-view">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
<div class="dashboard-grid">
|
| 53 |
<div class="workspace-column">
|
| 54 |
-
<section class="
|
| 55 |
-
<div>
|
| 56 |
-
<span class="eyebrow">
|
| 57 |
-
<
|
| 58 |
</div>
|
| 59 |
-
<div class="
|
| 60 |
-
|
| 61 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
</div>
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
<div>
|
| 69 |
-
<span class="eyebrow">New build</span>
|
| 70 |
-
<h2>Build from model card</h2>
|
| 71 |
-
</div>
|
| 72 |
-
<button class="secondary small" id="prepareNewBuild">Prepare new build</button>
|
| 73 |
-
</div>
|
| 74 |
-
<div class="build-mode-panel" id="buildModePanel">
|
| 75 |
-
<strong>Preparing a new build</strong>
|
| 76 |
-
<p>This form always starts a fresh private Space build. Selecting a run on the right only changes the progress and detail panels.</p>
|
| 77 |
-
</div>
|
| 78 |
-
<p class="muted">Generate a private Gradio Space with Pi, then validate it live. Hardware is ZeroGPU-first with fixed GPU fallback.</p>
|
| 79 |
-
<div class="form-grid compact-form">
|
| 80 |
-
<label>Model card URL or model ID<input id="modelId" value="Tongyi-MAI/Z-Image-Turbo" /></label>
|
| 81 |
-
<label>Target Space name<input id="targetSpace" placeholder="space-factory-z-image-v1" /></label>
|
| 82 |
-
<label>Pi model<input id="piModel" value="Qwen/Qwen3-Coder-Next" /></label>
|
| 83 |
-
<label>Implementation mode<select id="implementationMode"><option>full-inference-gated</option><option>full-inference-attempt</option><option>safe-scaffold</option></select></label>
|
| 84 |
-
<label>Preferred hardware<select id="preferredHardware"><option>zero-a10g</option><option>l40sx1</option><option>a10g-large</option><option>cpu-basic</option></select></label>
|
| 85 |
-
<label>Fallback hardware<select id="fallbackHardware"><option>l40sx1</option><option>a10g-large</option><option>a100-large</option><option>h200</option></select></label>
|
| 86 |
-
<label>Expected output type<select id="buildExpectedOutput"><option>text</option><option selected>image</option><option>video</option><option>audio</option><option>any</option></select></label>
|
| 87 |
</div>
|
| 88 |
-
<div class="
|
| 89 |
-
<
|
| 90 |
-
<
|
| 91 |
-
<label><input type="checkbox" checked disabled /> <span><strong>Private Space</strong><small>Generated Spaces remain private by default.</small></span></label>
|
| 92 |
</div>
|
| 93 |
-
|
| 94 |
-
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
<section class="progress-card" id="progressCard">
|
| 98 |
-
<div class="progress-head">
|
| 99 |
-
<div><span class="eyebrow">Live progress</span><strong id="progressTitle">Live job progress</strong><span class="badge running" id="progressStatus">Idle</span></div>
|
| 100 |
-
<strong id="progressPercent">0%</strong>
|
| 101 |
-
</div>
|
| 102 |
-
<div class="progress-bar"><div id="progressFill" style="width:0%"></div></div>
|
| 103 |
-
<div class="progress-meta compact-meta">
|
| 104 |
-
<div><span>Current step</span><strong id="currentStep">No run selected</strong></div>
|
| 105 |
-
<div><span>Last update</span><strong id="lastEvent">Launch a build to start tracking.</strong></div>
|
| 106 |
-
<div><span>Elapsed</span><strong id="elapsed">—</strong></div>
|
| 107 |
-
<div><span>Hardware plan</span><strong id="hardwarePlan">ZeroGPU → fixed GPU fallback</strong></div>
|
| 108 |
-
<div><span>Last checked</span><strong id="lastPolled">—</strong></div>
|
| 109 |
-
</div>
|
| 110 |
-
<div class="timeline" id="timeline"></div>
|
| 111 |
-
<div class="manual-action" id="manualActionPanel" hidden>
|
| 112 |
-
<div>
|
| 113 |
-
<strong id="manualActionTitle">Manual hardware required</strong>
|
| 114 |
-
<p id="manualActionText">Automatic hardware selection was not available. Open Space settings, choose the recommended GPU, then run validation.</p>
|
| 115 |
-
</div>
|
| 116 |
-
<div class="manual-action-buttons">
|
| 117 |
-
<a class="link-btn" id="manualOpenSettings" target="_blank">Open Space settings ↗</a>
|
| 118 |
-
<button class="secondary" id="manualGoValidate">Test after hardware change</button>
|
| 119 |
-
</div>
|
| 120 |
-
</div>
|
| 121 |
-
<div class="poll-warning" id="pollWarning" hidden>Progress polling is temporarily unavailable. The Job may still be running; retrying automatically…</div>
|
| 122 |
-
</section>
|
| 123 |
-
</div>
|
| 124 |
|
| 125 |
<div class="bottom-grid">
|
| 126 |
<section class="panel">
|
|
@@ -153,7 +142,7 @@
|
|
| 153 |
<button class="filter" data-status="failed">Failed</button>
|
| 154 |
</div>
|
| 155 |
<div id="runsTableHome" class="runs-table compact-runs">Loading runs…</div>
|
| 156 |
-
<p class="muted tiny-note">
|
| 157 |
</section>
|
| 158 |
|
| 159 |
<section class="panel run-details-home">
|
|
@@ -182,8 +171,8 @@
|
|
| 182 |
<section data-section="validate" hidden>
|
| 183 |
<div class="test-layout">
|
| 184 |
<section class="panel large">
|
| 185 |
-
<div class="panel-title-row"><div><span class="eyebrow">
|
| 186 |
-
<p class="muted">Use this after
|
| 187 |
<div class="form-grid">
|
| 188 |
<label>Target Space ID<input id="validateSpace" placeholder="alice/z-image-demo" /></label>
|
| 189 |
<label>API name<input id="validateApi" value="/generate" /></label>
|
|
@@ -208,6 +197,11 @@
|
|
| 208 |
<button id="selectedValidateBtn" disabled>Validate this Space</button>
|
| 209 |
<a id="selectedOpenJob" target="_blank"></a><a id="selectedOpenSpace" target="_blank"></a><a id="selectedOpenArtifacts" target="_blank"></a>
|
| 210 |
<ul id="selectedValidation"></ul><div id="artifactList"></div><pre id="reportPreview"></pre>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 211 |
</section>
|
| 212 |
</main>
|
| 213 |
</div>
|
|
|
|
| 8 |
</head>
|
| 9 |
<body>
|
| 10 |
<div class="app-shell">
|
| 11 |
+
<header class="app-header">
|
| 12 |
+
<div class="brand-lockup">
|
| 13 |
<div class="brand-icon">🚀</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
<div>
|
| 15 |
<h1>Agentic Space Factory</h1>
|
| 16 |
<p>Turn a Hugging Face model card into a private, testable Space.</p>
|
| 17 |
</div>
|
| 18 |
+
</div>
|
| 19 |
+
<div class="top-actions">
|
| 20 |
+
<span class="bucket-pill"><span class="status-dot green"></span><span id="bucketLabel">Bucket: loading…</span></span>
|
| 21 |
+
<span class="bucket-pill" id="bucketStatusPill"><span class="status-dot" id="bucketStatusDot"></span><span id="bucketStatusText">Checking…</span></span>
|
| 22 |
+
<span class="user-chip" id="userChip">Sign in</span>
|
| 23 |
+
<a class="logout-link" id="logoutLink" href="/logout" hidden>Logout</a>
|
| 24 |
+
</div>
|
| 25 |
+
</header>
|
| 26 |
|
| 27 |
+
<nav class="top-tabs" aria-label="Primary workflow">
|
| 28 |
+
<button class="nav-item active" data-view="build">New Build</button>
|
| 29 |
+
<button class="nav-item" data-view="progress">Live Progress</button>
|
| 30 |
+
<button class="nav-item" data-view="validate">Space Test</button>
|
| 31 |
+
</nav>
|
| 32 |
+
|
| 33 |
+
<main class="main">
|
| 34 |
<section class="auth-panel" id="authPanel" hidden></section>
|
| 35 |
<section class="operation-status" id="operationStatus" hidden></section>
|
| 36 |
|
| 37 |
<section data-section="build" class="build-view">
|
| 38 |
+
<div class="single-column">
|
| 39 |
+
<section class="bucket-strip">
|
| 40 |
+
<div>
|
| 41 |
+
<span class="eyebrow">Run storage</span>
|
| 42 |
+
<div class="bucket-source"><span class="status-dot" id="bucketInlineDot"></span><strong id="bucketInlineLabel">loading…</strong><span class="badge" id="bucketInlineStatus">Checking</span></div>
|
| 43 |
+
<p class="muted mini-copy">Runs, logs and artifacts stay in the connected user bucket.</p>
|
| 44 |
+
</div>
|
| 45 |
+
<div class="strip-actions">
|
| 46 |
+
<button class="secondary" id="checkBucket">Check bucket</button>
|
| 47 |
+
<button class="secondary" id="createBucket">Create private bucket</button>
|
| 48 |
+
</div>
|
| 49 |
+
</section>
|
| 50 |
+
|
| 51 |
+
<section class="panel build-card hero-card">
|
| 52 |
+
<div class="panel-title-row build-title-row">
|
| 53 |
+
<div>
|
| 54 |
+
<span class="eyebrow">New Build</span>
|
| 55 |
+
<h2>Prepare a new private Space</h2>
|
| 56 |
+
</div>
|
| 57 |
+
<button class="secondary small" id="prepareNewBuild">Prepare new build</button>
|
| 58 |
+
</div>
|
| 59 |
+
<div class="build-mode-panel" id="buildModePanel">
|
| 60 |
+
<strong>Preparing a new build</strong>
|
| 61 |
+
<p>This form always starts a fresh private Space build. Select a previous run in Live progress to inspect it without changing this form.</p>
|
| 62 |
+
</div>
|
| 63 |
+
<p class="muted">Generate a private Space with Pi, then validate it live. Hardware is ZeroGPU-first with fixed GPU fallback when available.</p>
|
| 64 |
+
<div class="form-grid compact-form">
|
| 65 |
+
<label>Model card URL or model ID<input id="modelId" value="Tongyi-MAI/Z-Image-Turbo" /></label>
|
| 66 |
+
<label>Target Space name<input id="targetSpace" placeholder="space-factory-z-image-v1" /></label>
|
| 67 |
+
<label>Pi model<input id="piModel" value="Qwen/Qwen3-Coder-Next" /></label>
|
| 68 |
+
<label>Implementation mode<select id="implementationMode"><option>full-inference-gated</option><option>full-inference-attempt</option><option>safe-scaffold</option></select></label>
|
| 69 |
+
<label>Preferred hardware<select id="preferredHardware"><option>zero-a10g</option><option>l40sx1</option><option>a10g-large</option><option>cpu-basic</option></select></label>
|
| 70 |
+
<label>Fallback hardware<select id="fallbackHardware"><option>l40sx1</option><option>a10g-large</option><option>a100-large</option><option>h200</option></select></label>
|
| 71 |
+
<label>Expected output type<select id="buildExpectedOutput"><option>text</option><option selected>image</option><option>video</option><option>audio</option><option>any</option></select></label>
|
| 72 |
+
</div>
|
| 73 |
+
<div class="toggles stacked-toggles">
|
| 74 |
+
<label><input id="tryZeroGpu" type="checkbox" checked /> <span><strong>Try ZeroGPU first</strong><small>Attempt free dynamic GPU before fixed hardware.</small></span></label>
|
| 75 |
+
<label><input id="allowFallback" type="checkbox" checked /> <span><strong>Allow fixed GPU fallback</strong><small>Use fallback hardware if ZeroGPU is unavailable.</small></span></label>
|
| 76 |
+
<label><input type="checkbox" checked disabled /> <span><strong>Private Space</strong><small>Generated Spaces remain private by default.</small></span></label>
|
| 77 |
+
</div>
|
| 78 |
+
<button class="primary" id="launchBuild" disabled>Launch new build</button>
|
| 79 |
+
<p class="muted build-gate" id="buildGateText">Checking your run bucket before enabling builds…</p>
|
| 80 |
+
</section>
|
| 81 |
+
</div>
|
| 82 |
+
</section>
|
| 83 |
+
|
| 84 |
+
<section data-section="progress" hidden>
|
| 85 |
<div class="dashboard-grid">
|
| 86 |
<div class="workspace-column">
|
| 87 |
+
<section class="progress-card" id="progressCard">
|
| 88 |
+
<div class="progress-head">
|
| 89 |
+
<div><span class="eyebrow">Live progress</span><strong id="progressTitle">Live job progress</strong><span class="badge running" id="progressStatus">Idle</span></div>
|
| 90 |
+
<strong id="progressPercent">0%</strong>
|
| 91 |
</div>
|
| 92 |
+
<div class="progress-bar"><div id="progressFill" style="width:0%"></div></div>
|
| 93 |
+
<div class="progress-meta compact-meta">
|
| 94 |
+
<div><span>Current step</span><strong id="currentStep">No run selected</strong></div>
|
| 95 |
+
<div><span>Last update</span><strong id="lastEvent">Launch a build or select a run to start tracking.</strong></div>
|
| 96 |
+
<div><span>Elapsed</span><strong id="elapsed">—</strong></div>
|
| 97 |
+
<div><span>Hardware plan</span><strong id="hardwarePlan">ZeroGPU → fixed GPU fallback</strong></div>
|
| 98 |
+
<div><span>Last checked</span><strong id="lastPolled">—</strong></div>
|
| 99 |
</div>
|
| 100 |
+
<div class="timeline timeline-compact" id="timeline"></div>
|
| 101 |
+
<div class="manual-action" id="manualActionPanel" hidden>
|
| 102 |
+
<div>
|
| 103 |
+
<strong id="manualActionTitle">Manual hardware required</strong>
|
| 104 |
+
<p id="manualActionText">Automatic hardware selection was not available. Open Space settings, choose the recommended GPU, then run validation.</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 105 |
</div>
|
| 106 |
+
<div class="manual-action-buttons">
|
| 107 |
+
<a class="link-btn" id="manualOpenSettings" target="_blank">Open Space settings ↗</a>
|
| 108 |
+
<button class="secondary" id="manualGoValidate">Test after hardware change</button>
|
|
|
|
| 109 |
</div>
|
| 110 |
+
</div>
|
| 111 |
+
<div class="poll-warning" id="pollWarning" hidden>Progress polling is temporarily unavailable. The Job may still be running; retrying automatically…</div>
|
| 112 |
+
</section>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 113 |
|
| 114 |
<div class="bottom-grid">
|
| 115 |
<section class="panel">
|
|
|
|
| 142 |
<button class="filter" data-status="failed">Failed</button>
|
| 143 |
</div>
|
| 144 |
<div id="runsTableHome" class="runs-table compact-runs">Loading runs…</div>
|
| 145 |
+
<p class="muted tiny-note">Filters are instant. Refresh only reloads the bucket.</p>
|
| 146 |
</section>
|
| 147 |
|
| 148 |
<section class="panel run-details-home">
|
|
|
|
| 171 |
<section data-section="validate" hidden>
|
| 172 |
<div class="test-layout">
|
| 173 |
<section class="panel large">
|
| 174 |
+
<div class="panel-title-row"><div><span class="eyebrow">Space Test</span><h2>Validate existing Space</h2></div></div>
|
| 175 |
+
<p class="muted">Use this to test a generated Space after choosing hardware manually if needed. The validation Job calls the live Space and stores output artifacts + latency in your bucket.</p>
|
| 176 |
<div class="form-grid">
|
| 177 |
<label>Target Space ID<input id="validateSpace" placeholder="alice/z-image-demo" /></label>
|
| 178 |
<label>API name<input id="validateApi" value="/generate" /></label>
|
|
|
|
| 197 |
<button id="selectedValidateBtn" disabled>Validate this Space</button>
|
| 198 |
<a id="selectedOpenJob" target="_blank"></a><a id="selectedOpenSpace" target="_blank"></a><a id="selectedOpenArtifacts" target="_blank"></a>
|
| 199 |
<ul id="selectedValidation"></ul><div id="artifactList"></div><pre id="reportPreview"></pre>
|
| 200 |
+
<span id="sidebarBucketDot" hidden></span>
|
| 201 |
+
<div id="runsTable" hidden></div>
|
| 202 |
+
<input id="runSearch" hidden />
|
| 203 |
+
<button id="refreshRuns" hidden></button>
|
| 204 |
+
<div id="runFilters" hidden></div>
|
| 205 |
</section>
|
| 206 |
</main>
|
| 207 |
</div>
|