Merge pull request #659 from doskoi/patch-2

Skip for empty query
This commit is contained in:
Iván Martínez 2023-06-11 19:13:58 +02:00 committed by GitHub
commit 5943ad1bf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -43,6 +43,8 @@ def main():
query = input("\nEnter a query: ") query = input("\nEnter a query: ")
if query == "exit": if query == "exit":
break break
if query.strip() == "":
continue
# Get the answer from the chain # Get the answer from the chain
res = qa(query) res = qa(query)