Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -33,7 +33,7 @@ def pdf_changes(pdf_doc, open_ai_key):
|
|
33 |
qa = ConversationalRetrievalChain.from_llm(
|
34 |
llm=OpenAI(temperature=0.5),
|
35 |
retriever=retriever,
|
36 |
-
return_source_documents=True
|
37 |
return "Ready"
|
38 |
else:
|
39 |
return "You forgot OpenAI API key"
|
|
|
33 |
qa = ConversationalRetrievalChain.from_llm(
|
34 |
llm=OpenAI(temperature=0.5),
|
35 |
retriever=retriever,
|
36 |
+
return_source_documents=False) # if you set this to True, you will not get a response due to a silent error.
|
37 |
return "Ready"
|
38 |
else:
|
39 |
return "You forgot OpenAI API key"
|