hlydecker commited on
Commit
69dfaee
1 Parent(s): 6965849

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"