mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-05-24 08:55:59 +00:00
fix:The console UI directly throws an error when user input is empty (#438)
This commit is contained in:
@@ -140,7 +140,11 @@ if __name__ == "__main__":
|
|||||||
if args.query:
|
if args.query:
|
||||||
user_query = " ".join(args.query)
|
user_query = " ".join(args.query)
|
||||||
else:
|
else:
|
||||||
user_query = input("Enter your query: ")
|
# Loop until user provides non-empty input
|
||||||
|
while True:
|
||||||
|
user_query = input("Enter your query: ")
|
||||||
|
if user_query is not None and user_query != "":
|
||||||
|
break
|
||||||
|
|
||||||
# Run the agent workflow with the provided parameters
|
# Run the agent workflow with the provided parameters
|
||||||
ask(
|
ask(
|
||||||
|
|||||||
Reference in New Issue
Block a user