messagebox.showwarning("Warning",f"Our Language Model has detected a high level of {emotion_label.lower()}. Please ensure your language is respectful.")
defupdate_history_display():
defupdate_history_display():
history_text.config(state=tk.NORMAL)# Enable the widget before updating
history_text.config(state=tk.NORMAL)# enable the widget before update
history_text.delete("1.0",tk.END)# Clear the existing content
history_text.delete("1.0",tk.END)# clear the current to be replaced