Update index.html
Browse files- index.html +22 -12
index.html
CHANGED
@@ -10,19 +10,29 @@
|
|
10 |
<h1>Text Generation w/ 🤗 Transformers.js</h1>
|
11 |
|
12 |
<div class="chat-container">
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
</div>
|
27 |
</div>
|
28 |
|
|
|
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 |
|