File size: 1,550 Bytes
0fafa9e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0a38422
 
 
 
 
 
 
 
 
 
 
 
 
0fafa9e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Maind AI</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body, html { height: 100%; font-family: sans-serif; background: #0f172a; overflow: hidden; }
        nav {
            height: 70px;
            display: flex;
            align-items: center;
            padding: 0 30px;
            background: #1e293b;
            border-bottom: 1px solid #334155;
        }
        .logo-area { display: flex; align-items: center; gap: 12px; }
        .logo-text { color: #38bdf8; font-weight: bold; font-size: 22px; letter-spacing: 1px; }
        .container { height: calc(100% - 70px); width: 100%; }
        iframe { width: 100%; height: 100%; border: none; }
    </style>
</head>
<body>
    <nav>
        <div class="logo-area">
            <img src="Maindai.png" alt="Logo" style="height: 45px;">
            <div class="logo-text">MAIND AI</div>
        </div>
    </nav>
    <div class="container">
        <iframe src="https://teotonix-maindai.hf.space/?__theme=dark"></iframe>
    </div>
  async function send(){
  const msg = document.getElementById("msg").value;

  const res = await fetch("http://127.0.0.1:8000/chat", {
    method:"POST",
    headers:{ "Content-Type":"application/json" },
    body: JSON.stringify({ message: msg })
  });

  const data = await res.json();
  document.getElementById("chat").innerText = data.reply;
}

</body>
</html>