Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
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)
|