Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +75 -18
index.html
CHANGED
|
@@ -2,28 +2,85 @@
|
|
| 2 |
<html lang="en">
|
| 3 |
|
| 4 |
<head>
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
</head>
|
| 11 |
|
| 12 |
<body>
|
| 13 |
-
|
| 14 |
-
<
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
</
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
|
| 26 |
-
|
| 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>
|