Spaces:
Runtime error
Runtime error
Commit
·
133e845
1
Parent(s):
1deb0a7
Update app.py
Browse files
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("
|
| 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 |
|