johnpaulbin commited on
Commit
a2f843a
1 Parent(s): f84dde7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -56,7 +56,7 @@ def home():
56
  recognition.onresult = (event) => {
57
  let currentTranscription = '';
58
  for (const result of event.results) {
59
- currentTranscription += result[0].transcript;
60
  }
61
  liveOutput.textContent = currentTranscription;
62
  if (lastTranscription !== currentTranscription) {
 
56
  recognition.onresult = (event) => {
57
  let currentTranscription = '';
58
  for (const result of event.results) {
59
+ currentTranscription = result[0].transcript;
60
  }
61
  liveOutput.textContent = currentTranscription;
62
  if (lastTranscription !== currentTranscription) {