Spaces:
Running

iris-wasm / index.html
apirela17's picture
Deploy iris-wasm 0.1.4
004c069 verified
Raw History Blame Contribute Delete
9.83 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Iris-3B · images in your browser</title>
<meta name="description" content="Iris-3B, a pixel-space text-to-image model with a four-step Turbo, a depth estimator and a four-times restorer, running on this device's CPU, compiled to WebAssembly with fusor-ai. Your prompts and photos never leave the page.">
<link rel="icon" href="/brand/iris.svg" type="image/svg+xml">
<link rel="stylesheet" href="/base.css">
<link rel="stylesheet" href="/app.css">
</head>
<body>
<main data-fusor-node="0" data-fusor-component="0" data-fusor-version="4">
<header class="masthead">
<div class="lockup">
<img src="/brand/fusor-ai.svg" alt="fusor-ai" width="40" height="40">
<span class="times" aria-hidden="true">×</span>
<img src="/brand/iris.svg" alt="" width="36" height="36">
<span class="wordmark">Iris-3B</span>
</div>
<h1>Images, depth and restoration, rendered on your own CPU</h1>
<p class="lede">Iris-3B, speridlabs' open model that draws in pixels rather than latents, compiled to WebAssembly with fusor-ai, with Qwen3-VL reading the prompt. Describe an image and watch it form in four steps with Turbo or up to a hundred with the base model, estimate a photo's depth, or enlarge it four times. Once loaded, nothing you type or choose leaves the page.</p>
</header>
<!--fusor:mount:0--><!--/fusor:mount:0-->
<!--fusor:mount:1--><!--/fusor:mount:1-->
<section class="card compose">
<fieldset>
<legend>Mode</legend>
<div class="choices" data-fusor-node="2" data-fusor-managed="">
</div>
</fieldset>
<!--fusor:mount:3--><!--/fusor:mount:3-->
<!--fusor:mount:6--><!--/fusor:mount:6-->
<div class="row">
<button class="control primary" id="generate" type="button" data-fusor-node="16" data-fusor-text="14"></button>
<button class="control" id="stop" type="button" data-fusor-node="17">Stop</button>
<span id="status" class="muted" aria-live="polite" data-fusor-text="15"></span>
</div>
</section>
<!--fusor:mount:9--><!--/fusor:mount:9-->
<footer class="muted">
<span id="runtime" data-fusor-text="24"></span>
<span>Built with <a href="https://github.com/fusor-rs/fusor-ai">fusor-ai</a> and <a href="https://fusor.build">fusor</a> · models: <a href="https://huggingface.co/speridlabs/iris-3b">Iris-3B</a> by speridlabs and <a href="https://huggingface.co/Qwen/Qwen3-VL-4B-Instruct">Qwen3-VL-4B-Instruct</a> by Qwen (both Apache-2.0) · <a href="https://github.com/fusor-rs/iris-wasm">source</a></span>
</footer>
</main>
<template data-fusor-component="1" data-fusor-version="4">
<section class="card loading" aria-live="polite">
<div class="row"><strong>Loading the model</strong><span id="detail" class="muted" data-fusor-text="0"></span></div>
<progress max="1" data-fusor-node="1"></progress>
</section>
</template>
<template data-fusor-component="3" data-fusor-version="4">
<section class="card broken" role="alert">
<strong data-fusor-text="1"></strong>
<p id="detail" data-fusor-text="2"></p>
<!--fusor:mount:2--><!--/fusor:mount:2-->
<div class="row"><a id="reload" class="control primary" href="">Reload</a></div>
</section>
</template>
<template data-fusor-component="4" data-fusor-version="4">
<p class="muted">A bundle loads only into the runtime built with it. If you built this page yourself, rebuild both with <code>just ui</code>.</p>
</template>
<template data-fusor-component="7" data-fusor-version="4">
<label class="choice"><input name="mode" type="radio" data-fusor-node="3"><span><strong data-fusor-text="3"></strong><small data-fusor-text="4"></small></span></label>
</template>
<template data-fusor-component="8" data-fusor-version="4">
<label for="prompt">Prompt</label>
<textarea class="field" id="prompt" maxlength="1000" rows="3" data-fusor-node="4"></textarea>
<!--fusor:mount:4--><!--/fusor:mount:4-->
<fieldset>
<legend>Size</legend>
<div class="choices" data-fusor-node="6" data-fusor-managed="">
</div>
</fieldset>
<div class="knobs">
<!--fusor:mount:5--><!--/fusor:mount:5-->
<div class="knob">
<label for="seed">Seed</label>
<input class="field mono" id="seed" inputmode="numeric" spellcheck="false" type="text" data-fusor-node="11">
</div>
</div>
<p id="estimate" class="muted" data-fusor-text="10"></p>
</template>
<template data-fusor-component="9" data-fusor-version="4">
<label for="negative">Negative prompt</label>
<textarea class="field negative" id="negative" maxlength="2000" placeholder="What the image should not show" rows="2" data-fusor-node="5"></textarea>
</template>
<template data-fusor-component="11" data-fusor-version="4">
<label class="choice"><input name="size" type="radio" data-fusor-node="7"><span><strong data-fusor-text="5"></strong><small data-fusor-text="6"></small></span></label>
</template>
<template data-fusor-component="12" data-fusor-version="4">
<div class="knob">
<label for="steps">Steps <output data-fusor-text="7"></output></label>
<input id="steps" max="100" min="1" step="1" type="range" data-fusor-node="8">
</div>
<div class="knob">
<label for="guidance">Guidance <output data-fusor-text="8"></output></label>
<input id="guidance" max="10" min="1" step="0.5" type="range" data-fusor-node="9">
</div>
<div class="knob">
<label for="shift">Shift <output data-fusor-text="9"></output></label>
<input id="shift" max="8" min="1" step="0.5" type="range" data-fusor-node="10">
</div>
</template>
<template data-fusor-component="15" data-fusor-version="4">
<label for="photo">Photo</label>
<input id="photo" class="field" type="file" accept="image/*">
<span id="photo-description" class="muted" data-fusor-text="11"></span>
<!--fusor:mount:7--><!--/fusor:mount:7-->
<!--fusor:mount:8--><!--/fusor:mount:8-->
</template>
<template data-fusor-component="16" data-fusor-version="4">
<fieldset>
<legend>Longest side the model sees</legend>
<div class="choices" data-fusor-node="12" data-fusor-managed="">
</div>
</fieldset>
</template>
<template data-fusor-component="17" data-fusor-version="4">
<label class="choice"><input name="max-side" type="radio" data-fusor-node="13"><span><strong data-fusor-text="12"></strong></span></label>
</template>
<template data-fusor-component="19" data-fusor-version="4">
<fieldset>
<legend>The photo is shrunk to fit this before it is enlarged four times</legend>
<div class="choices" data-fusor-node="14" data-fusor-managed="">
</div>
</fieldset>
</template>
<template data-fusor-component="20" data-fusor-version="4">
<label class="choice"><input name="budget" type="radio" data-fusor-node="15"><span><strong data-fusor-text="13"></strong></span></label>
</template>
<template data-fusor-component="23" data-fusor-version="4">
<section class="card live" data-fusor-node="18">
<div class="pictures">
<!--fusor:mount:10--><!--/fusor:mount:10-->
<div class="frame" data-fusor-node="20">
<canvas id="picture" aria-label="The image, as it forms"></canvas>
</div>
</div>
<progress id="steps-done" data-fusor-node="21"></progress>
<!--fusor:mount:11--><!--/fusor:mount:11-->
<dl class="metrics">
<div><dt>Time</dt><dd id="time" data-fusor-text="16"></dd><dd class="muted" data-fusor-text="17"></dd></div>
<div><dt>Per step</dt><dd id="per-step" data-fusor-text="18"></dd><dd class="muted" data-fusor-text="19"></dd></div>
<div><dt>Steps</dt><dd id="steps-count" data-fusor-text="20"></dd><dd class="muted" data-fusor-text="21"></dd></div>
<div><dt>Size</dt><dd id="size" data-fusor-text="22"></dd><dd class="muted">pixels</dd></div>
<div><dt>Network</dt><dd id="requests" data-fusor-text="23"></dd><dd class="muted">requests since the model loaded</dd></div>
</dl>
</section>
</template>
<template data-fusor-component="24" data-fusor-version="4">
<div class="frame" data-fusor-node="19">
<canvas id="source" aria-label="The photo"></canvas>
</div>
</template>
<template data-fusor-component="26" data-fusor-version="4">
<div class="row">
<a class="control" id="download" data-fusor-node="22">Download PNG</a>
</div>
</template><link rel="modulepreload" href="/__fusor/g-1794361079928747000-70883/pkg/app.js"><link rel="preload" href="/__fusor/g-1794361079928747000-70883/pkg/app_bg.wasm" as="fetch" type="application/wasm" crossorigin><script type="module" src="/__fusor/g-1794361079928747000-70883/boot.js"></script></body>
</html>