Spaces:
Build error
Build error
Update app.py
Browse files
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
|
| 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 |
|