diff --git a/app.py b/app.py index 2819d16..5e9b010 100644 --- a/app.py +++ b/app.py @@ -69,11 +69,6 @@ with gr.Blocks(css=BACKGROUND_CSS) as demo: history[-1]['content'] += f"\n[Error]: {str(e)}" yield history - def save_history(history): - """Saves the conversation history to a text file.""" - chat_history = "\n".join([f"{item['role'].capitalize()}: {item['content']}" for item in history]) - return chat_history - # Set up the Gradio interface components msg.submit(user, [msg, user_name, emotion_picker, chatbot], [msg, chatbot], queue=False).then( bot, chatbot, chatbot