Add templates folder
Browse files- templates/index.html +30 -0
templates/index.html
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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>My Chatbot</title>
|
| 7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
| 8 |
+
</head>
|
| 9 |
+
<body>
|
| 10 |
+
<div class="sidebar">
|
| 11 |
+
<h2>🕓 Chat History</h2>
|
| 12 |
+
<ul id="history-list">
|
| 13 |
+
<!-- History will be inserted here by script.js -->
|
| 14 |
+
</ul>
|
| 15 |
+
</div>
|
| 16 |
+
|
| 17 |
+
<div class="chat-container">
|
| 18 |
+
<h1>🤖 My Trained Chatbot</h1>
|
| 19 |
+
|
| 20 |
+
<div id="chat-box" class="chat-box"></div>
|
| 21 |
+
|
| 22 |
+
<form id="chat-form">
|
| 23 |
+
<input type="text" id="user-input" placeholder="Type your message..." autocomplete="off" required />
|
| 24 |
+
<button type="submit">Send</button>
|
| 25 |
+
</form>
|
| 26 |
+
</div>
|
| 27 |
+
|
| 28 |
+
<script src="{{ url_for('static', filename='script.js') }}"></script>
|
| 29 |
+
</body>
|
| 30 |
+
</html>
|