Download index.html from Ghotenius/Tenius: direct link, hf CLI and curl.
- Browser
- Download file 1.48 kB
-
https://huggingface.co/spaces/Ghotenius/Tenius/resolve/main/index.html
- Command line
-
hf download hf://spaces/Ghotenius/Tenius/index.html
-
curl -L -o index.html https://huggingface.co/spaces/Ghotenius/Tenius/resolve/main/index.html
1.48 kB
| <html> | |
| <head> | |
| <title>Tenius AI</title> | |
| <style> | |
| body { font-family: sans-serif; background: #121212; color: white; display: flex; flex-direction: column; height: 100vh; margin: 0; } | |
| #chat { flex: 1; overflow-y: auto; padding: 20px; } | |
| #input-area { padding: 20px; background: #1e1e1e; display: flex; } | |
| input { flex: 1; padding: 10px; border: none; border-radius: 5px; } | |
| button { margin-left: 10px; padding: 10px 20px; background: #007bff; color: white; border: none; border-radius: 5px; cursor: pointer; } | |
| </style> | |
| </head> | |
| <body> | |
| <div id="chat"><h1>Olá, eu sou o Tenius. Como posso ajudar?</h1></div> | |
| <div id="input-area"> | |
| <input type="text" id="msg" placeholder="Pergunte algo ao Tenius..."> | |
| <button onclick="send()">Enviar</button> | |
| </div> | |
| <script> | |
| async function send() { | |
| const msg = document.getElementById('msg').value; | |
| const chat = document.getElementById('chat'); | |
| chat.innerHTML += `<p><b>Você:</b> ${msg}</p>`; | |
| const res = await fetch('/chat', { | |
| method: 'POST', | |
| headers: { 'Content-Type': 'application/json' }, | |
| body: JSON.stringify({ message: msg }) | |
| }); | |
| const data = await res.json(); | |
| chat.innerHTML += `<p><b>Tenius:</b> ${data.reply}</p>`; | |
| document.getElementById('msg').value = ''; | |
| } | |
| </script> | |
| </body> | |
| </html> |