webllm-simple-chat / index.html
neetnestor's picture
feat: add card link to WebLLM Chat
ad86f71
raw
history blame
1.45 kB
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width" />
<title>WebLLM Simple Chat Space</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main>
<div class="card">
<p>
This is a simple DEMO page demonstrating how WebLLM supports chatting
with AI running in your local browser. For a better chat experience,
check out WebLLM Chat.
</p>
<a href="https://chat.webllm.ai/" rel="nofollow noopener noreferrer" target="_blank">
Go to Chat
</a>
</div>
<p>Step 1: Initialize WebLLM and Download Model</p>
<div class="download-container">
<select id="model-selection"></select>
<button id="download">Download</button>
</div>
<p id="download-status" class="hidden"></p>
<p>Step 2: Chat</p>
<div class="chat-container">
<div id="chat-box" class="chat-box"></div>
<div id="chat-stats" class="chat-stats hidden"></div>
<div class="chat-input-container">
<div class="chat-input">
<input
type="text"
id="user-input"
placeholder="Type a message..."
/>
<button id="send" disabled>Send</button>
</div>
</div>
</div>
</main>
<script src="./index.js" type="module"></script>
</body>
</html>