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

Upload index.html with huggingface_hub

Browse files
Files changed (1) hide show
  1. index.html +75 -18
index.html CHANGED
@@ -2,28 +2,85 @@
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>Gemma Chat - Apple Style</title>
8
+ <link rel="stylesheet" href="styles.css">
9
+ <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
10
  </head>
11
 
12
  <body>
13
+ <div class="app-container">
14
+ <header class="header">
15
+ <div class="header-content">
16
+ <div class="app-info">
17
+ <h1 class="app-title">Gemma Chat</h1>
18
+ <p class="app-subtitle">Powered by Google's Gemma-3 Model</p>
19
+ </div>
20
+ <a href="https://huggingface.co/spaces/akhaliq/anycoder" target="_blank" class="built-with">
21
+ Built with anycoder
22
+ </a>
23
+ </div>
24
+ </header>
25
+
26
+ <main class="chat-container">
27
+ <div class="messages-wrapper">
28
+ <div id="messages" class="messages">
29
+ <div class="welcome-message">
30
+ <div class="welcome-content">
31
+ <div class="welcome-icon">✨</div>
32
+ <h2>Welcome to Gemma Chat</h2>
33
+ <p>I'm here to help! Ask me anything about science, technology, creative writing, or just have a
34
+ conversation.</p>
35
+ <div class="example-prompts">
36
+ <p class="examples-title">Try asking:</p>
37
+ <div class="example-chips">
38
+ <button class="example-chip" data-prompt="Explain quantum computing in simple terms">Explain quantum computing</button>
39
+ <button class="example-chip" data-prompt="Write a short story about time travel">Write a time travel story</button>
40
+ <button class="example-chip" data-prompt="What are the benefits of renewable energy?">Renewable energy benefits</button>
41
+ <button class="example-chip" data-prompt="Help me plan a healthy meal plan">Healthy meal plan</button>
42
+ </div>
43
+ </div>
44
+ </div>
45
+ </div>
46
+ </div>
47
+ </div>
48
+
49
+ <div class="input-container">
50
+ <div class="input-wrapper">
51
+ <textarea
52
+ id="messageInput"
53
+ class="message-input"
54
+ placeholder="Type your message..."
55
+ rows="1"
56
+ disabled
57
+ ></textarea>
58
+ <button id="sendButton" class="send-button" disabled>
59
+ <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
60
+ <line x1="22" y1="2" x2="11" y2="13"></line>
61
+ <polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>
62
+ </svg>
63
+ </button>
64
+ </div>
65
+ <div class="input-status">
66
+ <span id="statusText">Initializing model...</span>
67
+ </div>
68
+ </div>
69
+ </main>
70
+
71
+ <div id="loadingOverlay" class="loading-overlay">
72
+ <div class="loading-content">
73
+ <div class="loading-spinner"></div>
74
+ <h3>Loading Gemma-3 Model</h3>
75
+ <p id="loadingProgress">Downloading model files...</p>
76
+ <div class="progress-bar">
77
+ <div id="progressFill" class="progress-fill"></div>
78
+ </div>
79
+ </div>
80
+ </div>
81
+ </div>
82
 
83
+ <script type="module" src="app.js"></script>
84
  </body>
85
 
86
  </html>