Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Update pushtotalk.py #427

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 1 addition & 11 deletions google-assistant-sdk/googlesamples/assistant/grpc/pushtotalk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()