wholewhale
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -15,7 +15,7 @@ os.environ['OPENAI_API_KEY'] = os.getenv("Your_API_Key")
|
|
15 |
last_interaction_time = 0
|
16 |
|
17 |
def loading_pdf():
|
18 |
-
return "Working on the upload. Also, pondering
|
19 |
|
20 |
def pdf_changes(pdf_doc):
|
21 |
try:
|
@@ -32,7 +32,7 @@ def pdf_changes(pdf_doc):
|
|
32 |
retriever = db.as_retriever()
|
33 |
global qa
|
34 |
qa = ConversationalRetrievalChain.from_llm(
|
35 |
-
llm=OpenAI(temperature=0.2, model_name="gpt-
|
36 |
retriever=retriever,
|
37 |
return_source_documents=False
|
38 |
)
|
|
|
15 |
last_interaction_time = 0
|
16 |
|
17 |
def loading_pdf():
|
18 |
+
return "Working on the upload. Also, pondering why humans don't use sporks more..."
|
19 |
|
20 |
def pdf_changes(pdf_doc):
|
21 |
try:
|
|
|
32 |
retriever = db.as_retriever()
|
33 |
global qa
|
34 |
qa = ConversationalRetrievalChain.from_llm(
|
35 |
+
llm=OpenAI(temperature=0.2, model_name="gpt-4o", max_tokens=-1, n=2),
|
36 |
retriever=retriever,
|
37 |
return_source_documents=False
|
38 |
)
|