Commit
·
b91cab8
1
Parent(s):
e455307
copy updates
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ from langchain.chains import ConversationalRetrievalChain
|
|
12 |
os.environ['OPENAI_API_KEY'] = os.getenv("Your_API_Key")
|
13 |
|
14 |
def loading_pdf():
|
15 |
-
return "
|
16 |
|
17 |
def pdf_changes(pdf_doc):
|
18 |
loader = OnlinePDFLoader(pdf_doc.name)
|
@@ -59,7 +59,7 @@ css = """
|
|
59 |
|
60 |
title = """
|
61 |
<div style="text-align: center;max-width: 700px;">
|
62 |
-
<h1>Chat with PDF • OpenAI</h1>
|
63 |
<p style="text-align: center;">Upload a .PDF from your computer, click the "Load PDF to LangChain" button, <br />
|
64 |
when everything is ready, you can start asking questions about the pdf ;) <br />
|
65 |
This version is set to store chat history, and uses OpenAI as LLM.</p>
|
|
|
12 |
os.environ['OPENAI_API_KEY'] = os.getenv("Your_API_Key")
|
13 |
|
14 |
def loading_pdf():
|
15 |
+
return "Working the upload. Also, pondering the usefulness of sporks..."
|
16 |
|
17 |
def pdf_changes(pdf_doc):
|
18 |
loader = OnlinePDFLoader(pdf_doc.name)
|
|
|
59 |
|
60 |
title = """
|
61 |
<div style="text-align: center;max-width: 700px;">
|
62 |
+
<h1>CauseWriter Chat with PDF • OpenAI</h1>
|
63 |
<p style="text-align: center;">Upload a .PDF from your computer, click the "Load PDF to LangChain" button, <br />
|
64 |
when everything is ready, you can start asking questions about the pdf ;) <br />
|
65 |
This version is set to store chat history, and uses OpenAI as LLM.</p>
|