Spaces:
Running
Running
Download index.html from forge-ai-dev/first-demo: direct link, hf CLI and curl.
- Browser
- Download file 645 Bytes
-
https://huggingface.co/spaces/forge-ai-dev/first-demo/resolve/main/index.html
- Command line
-
hf download hf://spaces/forge-ai-dev/first-demo/index.html
-
curl -L -o index.html https://huggingface.co/spaces/forge-ai-dev/first-demo/resolve/main/index.html
645 Bytes
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Forge AI Demo</title> | |
| <style> | |
| body { font-family: sans-serif; max-width: 500px; margin: 60px auto; text-align: center; } | |
| input, button { padding: 10px; font-size: 16px; margin: 6px; } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Forge AI</h1> | |
| <input id="name" placeholder="Type your name"> | |
| <button onclick="greet()">Say hello</button> | |
| <p id="out"></p> | |
| <script> | |
| function greet() { | |
| const n = document.getElementById("name").value || "friend"; | |
| document.getElementById("out").textContent = "Hello " + n + ", welcome to Forge AI!"; | |
| } | |
| </script> | |
| </body> | |
| </html> |