Spaces:
Runtime error
Runtime error
Download static/run_preprocess.js from Yatro/FireRed-Experimental-Turbo: direct link, hf CLI and curl.
- Browser
- Download file 564 Bytes
-
https://huggingface.co/spaces/Yatro/FireRed-Experimental-Turbo/resolve/main/static/run_preprocess.js
- Command line
-
hf download hf://spaces/Yatro/FireRed-Experimental-Turbo/static/run_preprocess.js
-
curl -L -o run_preprocess.js https://huggingface.co/spaces/Yatro/FireRed-Experimental-Turbo/resolve/main/static/run_preprocess.js
564 Bytes
| (imgs, p, s, rs, gs, st, m, gd) => { | |
| const images = window.__uploadedImages || []; | |
| const b64Array = images.map(img => img.b64); | |
| const imgsJson = JSON.stringify(b64Array); | |
| const promptEl = document.getElementById('custom-prompt-input'); | |
| const promptVal = promptEl ? promptEl.value : p; | |
| const mode = window.__selectedMode || 'fast'; | |
| const gpuDurEl = document.getElementById('custom-gpu-duration'); | |
| const gpuDuration = gpuDurEl ? parseInt(gpuDurEl.value, 10) : gd; | |
| return [imgsJson, promptVal, s, rs, gs, st, mode, gpuDuration]; | |
| } | |