Spaces:
Sleeping
Sleeping
Download static/script.js from atz21/i_am_just_trying: direct link, hf CLI and curl.
- Browser
- Download file 400 Bytes
-
https://huggingface.co/spaces/atz21/i_am_just_trying/resolve/main/static/script.js
- Command line
-
hf download hf://spaces/atz21/i_am_just_trying/static/script.js
-
curl -L -o script.js https://huggingface.co/spaces/atz21/i_am_just_trying/resolve/main/static/script.js
400 Bytes
| async function sendText() { | |
| const text = document.getElementById("textInput").value; | |
| const response = await fetch("/api/process", { | |
| method: "POST", | |
| headers: { | |
| "Content-Type": "application/json" | |
| }, | |
| body: JSON.stringify({text: text}) | |
| }); | |
| const data = await response.json(); | |
| document.getElementById("result").innerText = data.result; | |
| } |