Update index.html
Browse files- index.html +8 -40
index.html
CHANGED
@@ -1,41 +1,9 @@
|
|
1 |
-
<!
|
2 |
-
<html
|
3 |
-
<head>
|
4 |
-
|
5 |
-
|
6 |
-
<
|
7 |
-
|
8 |
-
</
|
9 |
-
<body>
|
10 |
-
<h1>Text Generation w/ 🤗 Transformers.js</h1>
|
11 |
-
|
12 |
-
<div class="chat-container">
|
13 |
-
<!-- Loading indicator -->
|
14 |
-
<div id="loadingContainer">
|
15 |
-
<div class="progress-bar">
|
16 |
-
<div id="progressFill"></div>
|
17 |
-
</div>
|
18 |
-
<div id="loadingText">Loading model... <span id="progressPercent">0%</span></div>
|
19 |
-
</div>
|
20 |
-
|
21 |
-
<!-- Chat interface (initially hidden) -->
|
22 |
-
<div id="chatInterface" style="display: none;">
|
23 |
-
<textarea
|
24 |
-
id="questionInput"
|
25 |
-
placeholder="Type your question here..."
|
26 |
-
rows="4"
|
27 |
-
></textarea>
|
28 |
-
|
29 |
-
<button id="sendButton">
|
30 |
-
Send Question
|
31 |
-
</button>
|
32 |
-
|
33 |
-
<div id="responseContainer">
|
34 |
-
<div id="response"></div>
|
35 |
-
</div>
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
|
39 |
-
<script src="index.js" type="module"></script>
|
40 |
-
</body>
|
41 |
</html>
|
|
|
1 |
+
<!doctype html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Transformers.js v3 (WebGPU support)</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<script type="module" src="/index.js"></script>
|
8 |
+
</body>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
</html>
|