Download static/index.html from ThisUsernameAlreadyExistsAlreadyExists/fastapi-test: direct link, hf CLI and curl.
- Browser
- Download file 853 Bytes
-
https://huggingface.co/spaces/ThisUsernameAlreadyExistsAlreadyExists/fastapi-test/resolve/main/static/index.html
- Command line
-
hf download hf://spaces/ThisUsernameAlreadyExistsAlreadyExists/fastapi-test/static/index.html
-
curl -L -o index.html https://huggingface.co/spaces/ThisUsernameAlreadyExistsAlreadyExists/fastapi-test/resolve/main/static/index.html
853 Bytes
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>kelompok cina visioner</title> | |
| </head> | |
| <body> | |
| <div style="display: flex; flex-direction: column; justify-content: center; align-items: center; box-sizing: border-box; height: 100vh; margin: 0;"> | |
| <h1>kelompok cina visioner :sparkle:</h1> | |
| <img id="preview" style="width: 256px; height: 256px; border: 1px solid; border-radius: 4px;"> | |
| <button id="generate" onclick="generate()">Generate</button> | |
| <button id="save">Save</button> | |
| </div> | |
| <script> | |
| async function generate() { | |
| const response = await fetch("/generate", { | |
| "method": "GET" | |
| }); | |
| const data = await response.json(); | |
| document.getElementById("preview").src = 'data:image/png;base64,' + data.image; | |
| } | |
| </script> | |
| </body> | |
| </html> |