Kelvinhjk commited on
Commit
d686330
·
1 Parent(s): a1d73f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ question_answerer1 = pipeline("question-answering", model=model1, tokenizer=toke
43
 
44
  def QnAfunction(question, QnAmodel):
45
  docs_found = docsearch.similarity_search(question)
46
- score = 0.5
47
  answer = ''
48
  for doc in docs_found:
49
  doc_result = QnAmodel(question=question, context = doc.page_content)
 
43
 
44
  def QnAfunction(question, QnAmodel):
45
  docs_found = docsearch.similarity_search(question)
46
+ score = 0.01
47
  answer = ''
48
  for doc in docs_found:
49
  doc_result = QnAmodel(question=question, context = doc.page_content)