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