Spaces:
Sleeping
Sleeping
johnpaulbin
commited on
Commit
•
a2f843a
1
Parent(s):
f84dde7
Update app.py
Browse files
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
|
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) {
|