Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,7 @@ If the answer isn't directly available, explain why.""",
|
|
74 |
input_variables=["context", "question"]
|
75 |
)
|
76 |
|
77 |
-
|
78 |
def load_and_process_pdf(self, pdf_path):
|
79 |
loader = PyPDFLoader(pdf_path)
|
80 |
documents = loader.load()
|
@@ -88,7 +88,7 @@ If the answer isn't directly available, explain why.""",
|
|
88 |
combine_docs_chain_kwargs={"prompt": self.qa_prompt}
|
89 |
)
|
90 |
|
91 |
-
|
92 |
def chat(self, query):
|
93 |
if not self.chain:
|
94 |
return "Please upload a PDF first."
|
|
|
74 |
input_variables=["context", "question"]
|
75 |
)
|
76 |
|
77 |
+
|
78 |
def load_and_process_pdf(self, pdf_path):
|
79 |
loader = PyPDFLoader(pdf_path)
|
80 |
documents = loader.load()
|
|
|
88 |
combine_docs_chain_kwargs={"prompt": self.qa_prompt}
|
89 |
)
|
90 |
|
91 |
+
|
92 |
def chat(self, query):
|
93 |
if not self.chain:
|
94 |
return "Please upload a PDF first."
|