Skip for empty query

This commit is contained in:
Jiang Sheng 2023-06-07 23:29:55 +08:00 committed by GitHub
parent 9d47d03d18
commit ddfb95a32e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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