salemamassi commited on
Commit
133e845
·
1 Parent(s): 1deb0a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,7 +34,7 @@ def chat(message,history):
34
  retriever=index.vectorstore.as_retriever(),
35
  input_key="question")
36
  # Perform question-answering on the uploaded PDF with the user's question
37
- gpt_response = chain.run("Please provide the context or topic related to the PDF document you'd like to discuss. You can also ask any specific questions you have in mind. "+ message)
38
  return gpt_response
39
 
40
 
 
34
  retriever=index.vectorstore.as_retriever(),
35
  input_key="question")
36
  # Perform question-answering on the uploaded PDF with the user's question
37
+ gpt_response = chain.run("Based on the file you have processed, provide a related answer to this question: "+ message)
38
  return gpt_response
39
 
40