Download chat.html from Abso7729/BeMax: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/spaces/Abso7729/BeMax/resolve/main/chat.html
- Command line
-
hf download hf://spaces/Abso7729/BeMax/chat.html
-
curl -L -o chat.html https://huggingface.co/spaces/Abso7729/BeMax/resolve/main/chat.html
1.3 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Chat with Be Max</title> | |
| <style> | |
| body { font-family: Arial; background: #f5f5f5; padding: 20px; } | |
| #chatbox { width: 100%; height: 300px; border: 1px solid #ccc; padding: 10px; overflow-y: scroll; background: #fff; } | |
| #input { width: 80%; padding: 10px; } | |
| #send { padding: 10px; } | |
| </style> | |
| </head> | |
| <body> | |
| <h2>🤖 Chat with Be Max</h2> | |
| <div id="chatbox"></div> | |
| <input id="input" placeholder="Write your symptoms..."> | |
| <button id="send">Send</button> | |
| <script> | |
| const chatbox = document.getElementById("chatbox"); | |
| const input = document.getElementById("input"); | |
| const send = document.getElementById("send"); | |
| send.onclick = () => { | |
| let msg = input.value.toLowerCase(); | |
| chatbox.innerHTML += "<p><b>You:</b> " + msg + "</p>"; | |
| let reply = "I'm not sure. Please consult a doctor."; | |
| if(msg.includes("fever") && msg.includes("cough")) reply = "It may be Influenza (Flu)"; | |
| if(msg.includes("thirst") && msg.includes("urination")) reply = "It may be Diabetes"; | |
| if(msg.includes("chest pain")) reply = "It may be a Heart Disease"; | |
| chatbox.innerHTML += "<p><b>Be Max:</b> " + reply + "</p>"; | |
| input.value = ""; | |
| }; | |
| </script> | |
| </body> | |
| </html> |