Update app.py
Browse files
app.py
CHANGED
@@ -42,12 +42,12 @@ from langchain.prompts import PromptTemplate
|
|
42 |
|
43 |
#QA_CHAIN_PROMPT = PromptTemplate.from_template(template)
|
44 |
|
45 |
-
from langchain.chains import ConversationalRetrievalChain
|
46 |
-
from langchain.memory import ConversationBufferMemory
|
47 |
-
memory = ConversationBufferMemory(
|
48 |
-
memory_key="chat_history",
|
49 |
-
return_messages=True
|
50 |
-
)
|
51 |
|
52 |
question = "How can I reverse Diabetes?"
|
53 |
print("template")
|
|
|
42 |
|
43 |
#QA_CHAIN_PROMPT = PromptTemplate.from_template(template)
|
44 |
|
45 |
+
#from langchain.chains import ConversationalRetrievalChain
|
46 |
+
#from langchain.memory import ConversationBufferMemory
|
47 |
+
#memory = ConversationBufferMemory(
|
48 |
+
# memory_key="chat_history",
|
49 |
+
# return_messages=True
|
50 |
+
#)
|
51 |
|
52 |
question = "How can I reverse Diabetes?"
|
53 |
print("template")
|