|
|
|
|
@ -45,8 +45,8 @@ class MainWindow(QMainWindow):
|
|
|
|
|
self.chat_log.append({"role": "assistant", "content":response})
|
|
|
|
|
|
|
|
|
|
# Add user's message and bot's response to chat window
|
|
|
|
|
self.chat_window.append(f"<p style='color: #0084ff;'><strong>You:</strong> {user_message}</p>")
|
|
|
|
|
self.chat_window.append(f"<p style='color: #008000;'><strong>Bot:</strong> {response}</p>")
|
|
|
|
|
self.chat_window.append(f"<p style='color: #0084ff;'><strong>You :</strong> {user_message}</p>")
|
|
|
|
|
self.chat_window.append(f"<p style='color: #008000;'><strong>Bot :</strong> {response}</p>")
|
|
|
|
|
|
|
|
|
|
# Clear text input field
|
|
|
|
|
self.text_input.clear()
|
|
|
|
|
|