-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
37 lines (35 loc) · 1.31 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>LLM</title>
</head>
<body>
<main>
<h1>Welcome to my LLM</h1>
<p>The llm is trained on all 33 volumes of Ascendance of a Bookworm (best light novel :P)</p>
<p>This model is using words as tokens as opposed of characters.</p>
<p>Anyways type in something and you will get a response</p>
<p>Everyone gets 20 free prompts (My laptop isn't free computational power, sorry)</p>
<p>Ask something in aob, for example "Myne"</p>
<h2>Please WAIT after sending prompt, it takes ~30 seconds for my laptop to compute a prompt</h2>
<label for="fname">Prompt</label>
<input id ="prompt" type="text" id="fname" name="fname"><br><br>
<input type="button" value="Send" onclick="req()">
<p id ="output">Output: </p>
</main>
<script>
function httpGet(theUrl) {
var xmlHttp = new XMLHttpRequest();
xmlHttp.open("GET", url, false);
xmlHttp.send(null);
return xmlHttp.responseText;
}
function req() {
document.getElementById('output').textContent = "Output: " + JSON.parse(httpGet("api/hidden/api/" + document.getElementById('prompt').value))["output"];
}
</script>
</body>
</html>