Huzaifa424 commited on
Commit
040ae88
·
verified ·
1 Parent(s): 3808df0

Update app.py

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