diff --git a/privateGPT.py b/privateGPT.py index 8fa10a6e..4c98d839 100755 --- a/privateGPT.py +++ b/privateGPT.py @@ -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)