johnpaulbin commited on
Commit
0740c85
·
verified ·
1 Parent(s): 08104f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -86,8 +86,10 @@ def home():
86
  }
87
 
88
  function clearTranscription() {
 
89
  liveOutput.textContent = '';
90
  lastTranscription = '';
 
91
  }
92
 
93
  // Start and stop functions
 
86
  }
87
 
88
  function clearTranscription() {
89
+ recognition.stop();
90
  liveOutput.textContent = '';
91
  lastTranscription = '';
92
+ recognition.start();
93
  }
94
 
95
  // Start and stop functions