Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def process_pdf(pdf_path):
|
|
| 28 |
return "PDF successfully processed and indexed."
|
| 29 |
|
| 30 |
# RAG Query Function
|
| 31 |
-
def query_rag(message, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p):
|
| 32 |
if vector_store is None:
|
| 33 |
return "Please upload and process a PDF first."
|
| 34 |
|
|
|
|
| 28 |
return "PDF successfully processed and indexed."
|
| 29 |
|
| 30 |
# RAG Query Function
|
| 31 |
+
def query_rag(message, system_prompt, temperature, max_new_tokens, top_k, repetition_penalty, top_p, history=None):
|
| 32 |
if vector_store is None:
|
| 33 |
return "Please upload and process a PDF first."
|
| 34 |
|