Update templates/chat.html
Browse files- templates/chat.html +6 -1
templates/chat.html
CHANGED
|
@@ -2,7 +2,12 @@
|
|
| 2 |
{% block content %}
|
| 3 |
<h1>Chat with Little Krishna</h1>
|
| 4 |
<div id="chat-container">
|
| 5 |
-
<div id="chat-messages"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
<form id="chat-form">
|
| 7 |
<input type="text" id="message-input" placeholder="Say something to Krishna..." required>
|
| 8 |
<button type="submit">Send</button>
|
|
|
|
| 2 |
{% block content %}
|
| 3 |
<h1>Chat with Little Krishna</h1>
|
| 4 |
<div id="chat-container">
|
| 5 |
+
<div id="chat-messages">
|
| 6 |
+
{% for user_msg, krishna_msg in chat_history %}
|
| 7 |
+
<p><strong>You:</strong> {{ user_msg }}</p>
|
| 8 |
+
<p><strong>Krishna:</strong> {{ krishna_msg }}</p>
|
| 9 |
+
{% endfor %}
|
| 10 |
+
</div>
|
| 11 |
<form id="chat-form">
|
| 12 |
<input type="text" id="message-input" placeholder="Say something to Krishna..." required>
|
| 13 |
<button type="submit">Send</button>
|