sds-bosch commited on
Commit
0d15314
1 Parent(s): fff3a0e

Changing from json to text

Browse files
Files changed (1) hide show
  1. 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: JSON.stringify({
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