Spaces:
Running
Running
Update index.html
Browse files- index.html +1 -1
index.html
CHANGED
@@ -162,7 +162,7 @@
|
|
162 |
fetch(apiUrl)
|
163 |
.then(response => response.json())
|
164 |
.then(data => {
|
165 |
-
const apiResponseText = data.
|
166 |
document.getElementById('api-response-content').textContent = JSON.stringify(data, null, 2);
|
167 |
convertTextToSpeech(apiResponseText); // Use the API response text for TTS
|
168 |
})
|
|
|
162 |
fetch(apiUrl)
|
163 |
.then(response => response.json())
|
164 |
.then(data => {
|
165 |
+
const apiResponseText = data.response; // Extract the relevant text
|
166 |
document.getElementById('api-response-content').textContent = JSON.stringify(data, null, 2);
|
167 |
convertTextToSpeech(apiResponseText); // Use the API response text for TTS
|
168 |
})
|