Updating Rest endpoint
Browse files- 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-
|
138 |
method: "POST",
|
139 |
headers: { "Content-Type": "application/json" },
|
140 |
body: JSON.stringify({
|
141 |
-
|
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 |
|