Spaces:
Running on Zero
Running on Zero
Download static/handle_source_result.js from maxmcd/Selectable-Face-Swap: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/maxmcd/Selectable-Face-Swap/resolve/main/static/handle_source_result.js
- Command line
-
hf download hf://spaces/maxmcd/Selectable-Face-Swap/static/handle_source_result.js
-
curl -L -o handle_source_result.js https://huggingface.co/spaces/maxmcd/Selectable-Face-Swap/resolve/main/static/handle_source_result.js
366 Bytes
| (sourceResultStr) => { | |
| try { | |
| const raw = sourceResultStr || | |
| (document.querySelector('#source-result textarea') || {}).value || '{}'; | |
| const result = JSON.parse(raw); | |
| if (window.__handleSourceResult) window.__handleSourceResult(result); | |
| } catch (e) { | |
| console.error('[handle_source_result] parse error:', e); | |
| } | |
| } | |