lakshmivairamani commited on
Commit
815b4c7
1 Parent(s): 0ecd5e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -18,7 +18,7 @@ from PyPDF2 import PdfReader
18
 
19
  # Initialize the memory
20
 
21
- #memory = ConversationBufferMemory(return_messages=True, memory_key="chat_history")
22
 
23
 
24
 
@@ -136,7 +136,7 @@ For document-related questions, search and retrieve information from the uploade
136
  For SQL database-related questions, only use the fields available in the collegedb schema, which includes tables such as buildings, classrooms, college, course, faculty, interns, person, section, student, and textbook.
137
  {{agent_scratchpad}}
138
  Question: {{input}}
139
- {{memory.buffer}}
140
  """
141
 
142
 
 
18
 
19
  # Initialize the memory
20
 
21
+ memory = ConversationBufferMemory(return_messages=True, memory_key="chat_history")
22
 
23
 
24
 
 
136
  For SQL database-related questions, only use the fields available in the collegedb schema, which includes tables such as buildings, classrooms, college, course, faculty, interns, person, section, student, and textbook.
137
  {{agent_scratchpad}}
138
  Question: {{input}}
139
+ {memory.buffer}
140
  """
141
 
142