Changing from json to text
Browse files- index.html +1 -3
index.html
CHANGED
@@ -137,9 +137,7 @@
|
|
137 |
const response = await fetch("https://sds-bosch-bha-api.hf.space/predict", {
|
138 |
method: "POST",
|
139 |
headers: { "Content-Type": "application/text" },
|
140 |
-
body:
|
141 |
-
input_text: input,
|
142 |
-
})
|
143 |
});
|
144 |
|
145 |
// Extract the chatbot response from the JSON data
|
|
|
137 |
const response = await fetch("https://sds-bosch-bha-api.hf.space/predict", {
|
138 |
method: "POST",
|
139 |
headers: { "Content-Type": "application/text" },
|
140 |
+
body: input
|
|
|
|
|
141 |
});
|
142 |
|
143 |
// Extract the chatbot response from the JSON data
|