Update app.py
Browse files
app.py
CHANGED
@@ -101,11 +101,11 @@ NOTE : DESCRIBE/SUMMARY should always return the overall summary of the document
|
|
101 |
return result['answer']
|
102 |
|
103 |
def get_pdf_path(self):
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
|
110 |
# Initialize the chatbot
|
111 |
pdf_chatbot = AdvancedPdfChatbot(openai_api_key)
|
|
|
101 |
return result['answer']
|
102 |
|
103 |
def get_pdf_path(self):
|
104 |
+
|
105 |
+
if self.pdf_path:
|
106 |
+
return self.pdf_path
|
107 |
+
else:
|
108 |
+
return "No PDF uploaded yet."
|
109 |
|
110 |
# Initialize the chatbot
|
111 |
pdf_chatbot = AdvancedPdfChatbot(openai_api_key)
|