Spaces:
Running on Zero
Running on Zero
Commit ·
4d8e705
1
Parent(s): 9757065
Sync visible GPU duration slider default to Fast mode's 15s
Browse filestemplates/app.html still hardcoded the visible slider's initial value
at 30, and mode_toggle.js only applied the mode's duration on a
mode-button click, not on page load, so the UI kept showing 30s after
8a3b1b0 dropped the actual default to 15s.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
- static/mode_toggle.js +1 -0
- templates/app.html +2 -2
static/mode_toggle.js
CHANGED
|
@@ -21,4 +21,5 @@ window.__setMode = function(m) {
|
|
| 21 |
applyModeSliderDefault('custom-gpu-duration', MODE_GPU_DURATION, m);
|
| 22 |
applyModeSliderDefault('custom-steps', MODE_STEPS, m);
|
| 23 |
};
|
|
|
|
| 24 |
}
|
|
|
|
| 21 |
applyModeSliderDefault('custom-gpu-duration', MODE_GPU_DURATION, m);
|
| 22 |
applyModeSliderDefault('custom-steps', MODE_STEPS, m);
|
| 23 |
};
|
| 24 |
+
window.__setMode(window.__selectedMode);
|
| 25 |
}
|
templates/app.html
CHANGED
|
@@ -120,8 +120,8 @@
|
|
| 120 |
<div class="settings-group-body">
|
| 121 |
<div class="slider-row">
|
| 122 |
<label>GPU時間(秒)</label>
|
| 123 |
-
<input type="range" id="custom-gpu-duration" min="10" max="120" step="5" value="
|
| 124 |
-
<span class="slider-val" id="custom-gpu-duration-val">
|
| 125 |
</div>
|
| 126 |
<div class="slider-row">
|
| 127 |
<label>シード</label>
|
|
|
|
| 120 |
<div class="settings-group-body">
|
| 121 |
<div class="slider-row">
|
| 122 |
<label>GPU時間(秒)</label>
|
| 123 |
+
<input type="range" id="custom-gpu-duration" min="10" max="120" step="5" value="15">
|
| 124 |
+
<span class="slider-val" id="custom-gpu-duration-val">15</span>
|
| 125 |
</div>
|
| 126 |
<div class="slider-row">
|
| 127 |
<label>シード</label>
|