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()