KyleIsaacs commited on
Commit
136475f
·
1 Parent(s): 038aefc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -33,7 +33,7 @@ vectorstore = Chroma.from_documents(documents=docs, embedding=embedding)
33
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) # to remember chat history include this
34
 
35
 
36
- prompt_template = """Use the following pieces of context to answer the question at the end with a short answer. If you don't know the answer, just say that you don't know, don't try to make up an answer.
37
  {context}
38
  Question: {question}"""
39
 
@@ -58,4 +58,4 @@ if(prompt):
58
  st.write(f"{datetime.datetime.now()} :red[{option}:] ", prompt)
59
  context = qachain({"query": prompt})
60
 
61
- st.write(f"{datetime.datetime.now()}", context)
 
33
  memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True) # to remember chat history include this
34
 
35
 
36
+ prompt_template = """Use the following pieces of context to answer the question at the end. If you don't know the answer, just say that you don't know, don't try to make up an answer.
37
  {context}
38
  Question: {question}"""
39
 
 
58
  st.write(f"{datetime.datetime.now()} :red[{option}:] ", prompt)
59
  context = qachain({"query": prompt})
60
 
61
+ st.write(f"{datetime.datetime.now()}", context['result'])