sds-bosch commited on
Commit
bf18363
1 Parent(s): 08c7f3d

Update response

Browse files
Files changed (1) hide show
  1. index.html +1 -1
index.html CHANGED
@@ -144,7 +144,7 @@
144
 
145
  // Extract the chatbot response from the JSON data
146
  const data = await response.json();
147
- const responseText = data.data[0];
148
 
149
  // Update the output textarea with the chatbot response
150
  $('.message.loading').remove();
 
144
 
145
  // Extract the chatbot response from the JSON data
146
  const data = await response.json();
147
+ const responseText = data.data;
148
 
149
  // Update the output textarea with the chatbot response
150
  $('.message.loading').remove();