From 5f3baebadfa9f3e7d996e3398869891a5c3c072b Mon Sep 17 00:00:00 2001 From: Techburied <93422387+Techburied@users.noreply.github.com> Date: Mon, 13 Dec 2021 12:45:48 +0530 Subject: [PATCH] Update pushtotalk.py --- .../googlesamples/assistant/grpc/pushtotalk.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py b/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py index 9e81850..267b67a 100644 --- a/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py +++ b/google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py @@ -453,17 +453,7 @@ def blink(speed, number): # When the once flag is set, don't wait for a trigger. Otherwise, wait. wait_for_user_trigger = not once while True: - if wait_for_user_trigger: - click.pause(info='Press Enter to send a new request...') - continue_conversation = assistant.assist() - # wait for user trigger if there is no follow-up turn in - # the conversation. - wait_for_user_trigger = not continue_conversation - - # If we only want one conversation, break. - if once and (not continue_conversation): - break - + if __name__ == '__main__': main()