Skip to content

Commit

Permalink
Cosmetics and typo fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Tyka committed Sep 3, 2019
1 parent 1aa35e7 commit 51f90b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion model.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def add_model_flags(parser):
default=16000,
help="Optional: Sample Rate. The model expects 16000. "
"However you may alternative sampling rate that may or may not work."
"If you speicify 48000 it will be downsampled to 16000.")
"If you specify 48000 it will be downsampled to 16000.")

def classify_audio(audio_device_index, engine, labels_file,
commands_file=None,
Expand Down
7 changes: 4 additions & 3 deletions run_hearing_snake.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,11 @@ def __init__(self, display_width, display_height):
self.apple = Apple(display_width, display_height)
self._update_player_to_apple_dist()
self._gameover_text = 'Say \'launch game\' to start the game!\n'
self._gameover_text += '\nConrols:\n'
self._gameover_text += '\nControls: You can say any of\n\n'
for d in ["up", "down", "left", "right"]:
self._gameover_text += 'Say \'move %s\', \'go %s\' ' % (d, d)
self._gameover_text += 'or \'turn %s\' to make the snake go %s.\n' % (d, d)
self._gameover_text += '\'move %s\', \'go %s\' ' % (d, d)
self._gameover_text += 'or \'turn %s\'\n' % (d)
self._gameover_text += '\n\n to control your snake.'

def _update_gameover_text(self):
self._gameover_text = ''
Expand Down

0 comments on commit 51f90b5

Please sign in to comment.