srivatsavdamaraju commited on
Commit
359f2e0
·
verified ·
1 Parent(s): a773d1a

Update index.html

Browse files
Files changed (1) hide show
  1. 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.gvp_bot_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
  })
 
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
  })