Sbnos commited on
Commit
7db5382
·
verified ·
1 Parent(s): 9cae142
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from langchain.prompts import ChatPromptTemplate, PromptTemplate
7
  from langchain.schema import format_document
8
  from typing import List
9
  from langchain.memory import ConversationBufferMemory
10
- from langchain_core.chat_message_histories import StreamlitChatMessageHistory
11
  import time
12
 
13
  # Load the embedding function
@@ -30,7 +30,6 @@ def _combine_documents(docs, document_prompt=DEFAULT_DOCUMENT_PROMPT, document_s
30
  chistory = []
31
 
32
  def store_chat_history(role: str, content: str):
33
- # Append the new message to the chat history
34
  chistory.append({"role": role, "content": content})
35
 
36
  def render_message_with_copy_button(role: str, content: str, key: str):
 
7
  from langchain.schema import format_document
8
  from typing import List
9
  from langchain.memory import ConversationBufferMemory
10
+ from langchain_community.chat_message_histories import StreamlitChatMessageHistory
11
  import time
12
 
13
  # Load the embedding function
 
30
  chistory = []
31
 
32
  def store_chat_history(role: str, content: str):
 
33
  chistory.append({"role": role, "content": content})
34
 
35
  def render_message_with_copy_button(role: str, content: str, key: str):