Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +56 -18
index.html
CHANGED
|
@@ -2,28 +2,66 @@
|
|
| 2 |
<html lang="en">
|
| 3 |
|
| 4 |
<head>
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
<title>Transformers.js - Object Detection</title>
|
| 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>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>
|