mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-06-27 15:58:56 +00:00
Skip for empty query
This commit is contained in:
parent
9d47d03d18
commit
ddfb95a32e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user