Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,7 +71,7 @@ chat_history = [] # initialize chat history
|
|
| 71 |
def greet(question, pdf_file):
|
| 72 |
global chat_history
|
| 73 |
print("chat_history: ", chat_history)
|
| 74 |
-
a = load_db(pdf_file,
|
| 75 |
r = a.invoke({"question": question, "chat_history": chat_history})
|
| 76 |
match = re.search(r'Helpful Answer:(.*)', r['answer'])
|
| 77 |
if match:
|
|
|
|
| 71 |
def greet(question, pdf_file):
|
| 72 |
global chat_history
|
| 73 |
print("chat_history: ", chat_history)
|
| 74 |
+
a = load_db(pdf_file, 5)
|
| 75 |
r = a.invoke({"question": question, "chat_history": chat_history})
|
| 76 |
match = re.search(r'Helpful Answer:(.*)', r['answer'])
|
| 77 |
if match:
|