diff --git a/ChatBot/templates/index.html b/ChatBot/templates/index.html index 8f67d22..4627437 100644 --- a/ChatBot/templates/index.html +++ b/ChatBot/templates/index.html @@ -2,28 +2,131 @@ + Chatbot -
- {% for item in history %} - {% if item.role == 'user' %} -

User: {{ item.content }}

- {% elif item.role == 'system' %} -

Bot: {{ item.content }}

- {% endif %} - {% endfor %} +
+
ChatBot
+
+ {% for item in history %} + {% if item.role == 'user' %} +
+
You
+
{{ item.content }}
+
+ {% elif item.role == 'assistant' %} +
+
Bot
+
{{ item.content }}
+
+ {% endif %} + {% endfor %} +
+
+
+ + +
+
-
-
-
- -
\ No newline at end of file