MRasheq commited on
Commit
77516a4
·
verified ·
1 Parent(s): a4fa14c

Update index.html

Browse files
Files changed (1) hide show
  1. 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
- <textarea
14
- id="questionInput"
15
- placeholder="Type your question here..."
16
- rows="4"
17
- ></textarea>
18
-
19
- <button id="sendButton">
20
- Send Question
21
- </button>
 
 
 
 
 
 
 
 
 
 
22
 
23
- <div id="responseContainer">
24
- <label id="status">Loading model...</label>
25
- <div id="response"></div>
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