akhaliq HF Staff commited on
Commit
f695f22
·
verified ·
1 Parent(s): 196f698

Upload index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +56 -18
index.html CHANGED
@@ -2,28 +2,66 @@
2
  <html lang="en">
3
 
4
  <head>
5
- <meta charset="UTF-8" />
6
- <link rel="stylesheet" href="style.css" />
7
-
8
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
9
- <title>Transformers.js - Object Detection</title>
10
  </head>
11
 
12
  <body>
13
- <h1>Object Detection w/ 🤗 Transformers.js</h1>
14
- <label id="container" for="upload">
15
- <svg width="25" height="25" viewBox="0 0 25 25" fill="none" xmlns="http://www.w3.org/2000/svg">
16
- <path fill="#000"
17
- d="M3.5 24.3a3 3 0 0 1-1.9-.8c-.5-.5-.8-1.2-.8-1.9V2.9c0-.7.3-1.3.8-1.9.6-.5 1.2-.7 2-.7h18.6c.7 0 1.3.2 1.9.7.5.6.7 1.2.7 2v18.6c0 .7-.2 1.4-.7 1.9a3 3 0 0 1-2 .8H3.6Zm0-2.7h18.7V2.9H3.5v18.7Zm2.7-2.7h13.3c.3 0 .5 0 .6-.3v-.7l-3.7-5a.6.6 0 0 0-.6-.2c-.2 0-.4 0-.5.3l-3.5 4.6-2.4-3.3a.6.6 0 0 0-.6-.3c-.2 0-.4.1-.5.3l-2.7 3.6c-.1.2-.2.4 0 .7.1.2.3.3.6.3Z">
18
- </path>
19
- </svg>
20
- Click to upload image
21
- <label id="example">(or try example)</label>
22
- </label>
23
- <label id="status">Loading model...</label>
24
- <input id="upload" type="file" accept="image/*" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
 
26
- <script src="index.js" type="module"></script>
27
  </body>
28
 
29
  </html>
 
2
  <html lang="en">
3
 
4
  <head>
5
+ <meta charset="UTF-8">
6
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
+ <title>AI Chat Assistant</title>
8
+ <link rel="stylesheet" href="style.css">
 
9
  </head>
10
 
11
  <body>
12
+ <div class="container">
13
+ <header>
14
+ <div class="header-content">
15
+ <h1>
16
+ <svg class="logo-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
17
+ <path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"></path>
18
+ </svg>
19
+ AI Chat Assistant
20
+ </h1>
21
+ <p class="subtitle">Powered by Gemma 3 270M</p>
22
+ </div>
23
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">
24
+ Built with anycoder
25
+ </a>
26
+ </header>
27
+
28
+ <div class="chat-container">
29
+ <div id="loadingScreen" class="loading-screen">
30
+ <div class="loading-content">
31
+ <div class="spinner"></div>
32
+ <p class="loading-text">Initializing AI model...</p>
33
+ <p class="loading-subtext">This may take a moment on first load</p>
34
+ <div id="progressBar" class="progress-bar">
35
+ <div id="progressFill" class="progress-fill"></div>
36
+ </div>
37
+ <p id="progressText" class="progress-text">0%</p>
38
+ </div>
39
+ </div>
40
+
41
+ <div id="chatMessages" class="chat-messages"></div>
42
+
43
+ <div class="input-container">
44
+ <div class="input-wrapper">
45
+ <textarea
46
+ id="messageInput"
47
+ placeholder="Message AI Assistant..."
48
+ rows="1"
49
+ disabled
50
+ ></textarea>
51
+ <button id="sendButton" class="send-button" disabled>
52
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
53
+ <path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"></path>
54
+ </svg>
55
+ </button>
56
+ </div>
57
+ <div class="input-footer">
58
+ <span class="hint">Press Enter to send, Shift+Enter for new line</span>
59
+ </div>
60
+ </div>
61
+ </div>
62
+ </div>
63
 
64
+ <script type="module" src="index.js"></script>
65
  </body>
66
 
67
  </html>