From b47383c2ba666c18e53fc50e6dba495e7d68fb55 Mon Sep 17 00:00:00 2001 From: LiorDav Date: Wed, 6 Nov 2024 18:05:55 +0000 Subject: [PATCH] Update app.py --- app.py | 5 ----- 1 file changed, 5 deletions(-) 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