Spaces:
Running
Running
Update index.html
Browse files- index.html +41 -1
index.html
CHANGED
|
@@ -59,6 +59,46 @@
|
|
| 59 |
<label class="label" for="negative">Avoid <span class="dim" id="neg-hint">(optional negative prompt)</span></label>
|
| 60 |
<input id="negative" type="text" spellcheck="false" placeholder="e.g. text, blur">
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
<div class="row">
|
| 63 |
<div class="field">
|
| 64 |
<label class="label" for="seed">Seed</label>
|
|
@@ -144,4 +184,4 @@
|
|
| 144 |
<script src="js/config.js"></script>
|
| 145 |
<script type="module" src="js/app.js"></script>
|
| 146 |
</body>
|
| 147 |
-
</html>
|
|
|
|
| 59 |
<label class="label" for="negative">Avoid <span class="dim" id="neg-hint">(optional negative prompt)</span></label>
|
| 60 |
<input id="negative" type="text" spellcheck="false" placeholder="e.g. text, blur">
|
| 61 |
|
| 62 |
+
<!-- Image-to-image reference controls -->
|
| 63 |
+
<div class="image-reference">
|
| 64 |
+
<label class="label" for="reference-image">Reference image (optional)</label>
|
| 65 |
+
<input
|
| 66 |
+
id="reference-image"
|
| 67 |
+
type="file"
|
| 68 |
+
accept="image/png,image/jpeg,image/webp"
|
| 69 |
+
>
|
| 70 |
+
|
| 71 |
+
<div id="reference-preview-wrap" hidden>
|
| 72 |
+
<img
|
| 73 |
+
id="reference-preview"
|
| 74 |
+
alt="Selected reference image"
|
| 75 |
+
style="display:block;max-width:100%;max-height:240px;object-fit:contain;margin-top:10px;"
|
| 76 |
+
>
|
| 77 |
+
<button id="clear-reference" class="btn ghost small" type="button">
|
| 78 |
+
Remove image
|
| 79 |
+
</button>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<label class="label" for="image-strength">
|
| 83 |
+
Image strength <b id="image-strength-v">0.65</b>
|
| 84 |
+
</label>
|
| 85 |
+
<input
|
| 86 |
+
id="image-strength"
|
| 87 |
+
type="range"
|
| 88 |
+
min="0.10"
|
| 89 |
+
max="1.00"
|
| 90 |
+
step="0.05"
|
| 91 |
+
value="0.65"
|
| 92 |
+
disabled
|
| 93 |
+
>
|
| 94 |
+
<p class="small-print">
|
| 95 |
+
Lower strength preserves more of the reference image. Higher strength
|
| 96 |
+
allows greater changes. Image-to-image will be enabled once the
|
| 97 |
+
required encoder is connected.
|
| 98 |
+
</p>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
|
| 102 |
<div class="row">
|
| 103 |
<div class="field">
|
| 104 |
<label class="label" for="seed">Seed</label>
|
|
|
|
| 184 |
<script src="js/config.js"></script>
|
| 185 |
<script type="module" src="js/app.js"></script>
|
| 186 |
</body>
|
| 187 |
+
</html>
|