Abrar20 commited on
Commit
1ca4c81
1 Parent(s): 9626076

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def load_pdf_to_langchain(pdf_path, repo_id):
47
  retriever = db.as_retriever()
48
  llm = HuggingFaceHub(
49
  repo_id=repo_id,
50
- model_kwargs={'temperature': 0.3, 'max_new_tokens': 2096}
51
  )
52
  qa_chain = get_chain(llm, retriever)
53
  return qa_chain
 
47
  retriever = db.as_retriever()
48
  llm = HuggingFaceHub(
49
  repo_id=repo_id,
50
+ model_kwargs={'temperature': 0.3}
51
  )
52
  qa_chain = get_chain(llm, retriever)
53
  return qa_chain