Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +65 -18
index.html
CHANGED
|
@@ -2,28 +2,75 @@
|
|
| 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>AI Chat Assistant</title>
|
| 8 |
+
<link rel="stylesheet" href="style.css">
|
| 9 |
+
<link href="https://fonts.googleapis.com/css2?family=SF+Pro+Display:wght@300;400;500;600;700&display=swap"
|
| 10 |
+
rel="stylesheet">
|
| 11 |
</head>
|
| 12 |
|
| 13 |
<body>
|
| 14 |
+
<div class="container">
|
| 15 |
+
<!-- Header -->
|
| 16 |
+
<header class="header">
|
| 17 |
+
<div class="header-content">
|
| 18 |
+
<h1 class="title">
|
| 19 |
+
<span class="gradient-text">AI Chat</span>
|
| 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 |
+
<!-- Model Status -->
|
| 29 |
+
<div id="modelStatus" class="model-status">
|
| 30 |
+
<div class="status-content">
|
| 31 |
+
<div class="loader"></div>
|
| 32 |
+
<span id="statusText">Initializing model...</span>
|
| 33 |
+
</div>
|
| 34 |
+
<div id="progressBar" class="progress-bar">
|
| 35 |
+
<div id="progressFill" class="progress-fill"></div>
|
| 36 |
+
</div>
|
| 37 |
+
</div>
|
| 38 |
+
|
| 39 |
+
<!-- Chat Container -->
|
| 40 |
+
<div class="chat-container">
|
| 41 |
+
<div id="chatMessages" class="chat-messages">
|
| 42 |
+
<div class="welcome-message">
|
| 43 |
+
<div class="welcome-icon">💬</div>
|
| 44 |
+
<h2>Welcome to AI Chat</h2>
|
| 45 |
+
<p>Start a conversation by typing a message below. I'm here to help!</p>
|
| 46 |
+
</div>
|
| 47 |
+
</div>
|
| 48 |
+
|
| 49 |
+
<!-- Input Area -->
|
| 50 |
+
<div class="input-container">
|
| 51 |
+
<div class="input-wrapper">
|
| 52 |
+
<textarea
|
| 53 |
+
id="userInput"
|
| 54 |
+
class="user-input"
|
| 55 |
+
placeholder="Type your message..."
|
| 56 |
+
rows="1"
|
| 57 |
+
disabled
|
| 58 |
+
></textarea>
|
| 59 |
+
<button id="sendButton" class="send-button" disabled>
|
| 60 |
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none">
|
| 61 |
+
<path d="M22 2L11 13" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
| 62 |
+
<path d="M22 2L15 22L11 13L2 9L22 2Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
| 63 |
+
</svg>
|
| 64 |
+
</button>
|
| 65 |
+
</div>
|
| 66 |
+
<div class="input-hint">
|
| 67 |
+
Press Enter to send • Shift+Enter for new line
|
| 68 |
+
</div>
|
| 69 |
+
</div>
|
| 70 |
+
</div>
|
| 71 |
+
</div>
|
| 72 |
|
| 73 |
+
<script type="module" src="index.js"></script>
|
| 74 |
</body>
|
| 75 |
|
| 76 |
</html>
|