sds-bosch commited on
Commit
6a0d729
1 Parent(s): 8ff79ad

Updating Rest endpoint

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -134,11 +134,11 @@
134
  $('<div class="message loading new"><figure class="avatar"><img src="bot.png" /></figure><span></span></div>').appendTo($('.mCSB_container'));
135
 
136
  // Make a POST request to the chatbot API
137
- const response = await fetch("https://sds-bosch-watch-api.hf.space/--replicas/0dobj/api/predict", {
138
  method: "POST",
139
  headers: { "Content-Type": "application/json" },
140
  body: JSON.stringify({
141
- data: [input],
142
  })
143
  });
144
 
 
134
  $('<div class="message loading new"><figure class="avatar"><img src="bot.png" /></figure><span></span></div>').appendTo($('.mCSB_container'));
135
 
136
  // Make a POST request to the chatbot API
137
+ const response = await fetch("https://sds-bosch-movadoapi.hf.space/predict", {
138
  method: "POST",
139
  headers: { "Content-Type": "application/json" },
140
  body: JSON.stringify({
141
+ input_text: [input],
142
  })
143
  });
144