Spaces:
Sleeping
Sleeping
Mr-Vicky-01
commited on
Commit
•
b398150
1
Parent(s):
8357cfe
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def user_input(user_question):
|
|
57 |
new_db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
58 |
docs = new_db.similarity_search(user_question)
|
59 |
chain = get_conversational_chain()
|
60 |
-
response = chain({"
|
61 |
return response["output_text"]
|
62 |
|
63 |
# def response_generator(response):
|
|
|
57 |
new_db = FAISS.load_local("faiss_index", embeddings, allow_dangerous_deserialization=True)
|
58 |
docs = new_db.similarity_search(user_question)
|
59 |
chain = get_conversational_chain()
|
60 |
+
response = chain({"context": docs, "question": user_question}, return_only_outputs=True)
|
61 |
return response["output_text"]
|
62 |
|
63 |
# def response_generator(response):
|