anasmkh commited on
Commit
b969256
·
verified ·
1 Parent(s): 8639747

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -51,9 +51,8 @@ qa_chain = RetrievalQA.from_llm(llm=local_llm, retriever=retriever)
51
  def gradinterface(query,history):
52
 
53
  if query == "exit":
54
- break
55
- if query.strip() == "":
56
- continue
57
 
58
  template = """Use the following pieces of context to answer the question at the end.
59
  If you don't know the answer, just say that you don't know, don't try to make up an answer.
 
51
  def gradinterface(query,history):
52
 
53
  if query == "exit":
54
+ pass
55
+
 
56
 
57
  template = """Use the following pieces of context to answer the question at the end.
58
  If you don't know the answer, just say that you don't know, don't try to make up an answer.