Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +20 -22
index.html
CHANGED
@@ -1,29 +1,27 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
3 |
-
|
4 |
<head>
|
5 |
-
<meta charset="UTF-8"
|
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>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html lang="en">
|
|
|
3 |
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
+
<title>AI Chatbot</title>
|
7 |
+
<link rel="stylesheet" href="style.css">
|
|
|
8 |
</head>
|
|
|
9 |
<body>
|
10 |
+
<div class="container">
|
11 |
+
<header>
|
12 |
+
<h1>AI Chatbot</h1>
|
13 |
+
<p>Ask anything and get responses powered by Gemma model.</p>
|
14 |
+
</header>
|
15 |
+
<div id="chat-container" class="chat-container" aria-live="polite">
|
16 |
+
<!-- Chat messages will be appended here -->
|
17 |
+
</div>
|
18 |
+
<form id="chat-form" class="input-form">
|
19 |
+
<input type="text" id="user-input" placeholder="Type your message..." aria-label="Type your message" required>
|
20 |
+
<button type="submit" id="send-btn">Send</button>
|
21 |
+
</form>
|
22 |
+
<div id="loading" class="loading" aria-hidden="true">Loading...</div>
|
23 |
+
<div id="error" class="error" aria-hidden="true"></div>
|
24 |
+
</div>
|
25 |
+
<script type="module" src="index.js"></script>
|
26 |
</body>
|
|
|
27 |
</html>
|