mirror of
https://github.com/imartinez/privateGPT.git
synced 2025-06-28 16:26: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: ")
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user