geethareddy commited on
Commit
fdfd8f5
·
verified ·
1 Parent(s): 23f49e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,8 +100,8 @@ html_code = """
100
 
101
  const utterance = new SpeechSynthesisUtterance(data.response);
102
  utterance.onend = () => {
103
- response.textContent = data.response;
104
- response.style.display = "block"; // Show the response after the speech is done
105
  };
106
  speechSynthesis.speak(utterance);
107
 
 
100
 
101
  const utterance = new SpeechSynthesisUtterance(data.response);
102
  utterance.onend = () => {
103
+ response.textContent = data.response; // Only show text after speech ends
104
+ response.style.display = "block"; // Show the text response
105
  };
106
  speechSynthesis.speak(utterance);
107