Almaatla commited on
Commit
61639a8
·
verified ·
1 Parent(s): 90173f9

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +2 -2
index.html CHANGED
@@ -97,7 +97,7 @@
97
  event.preventDefault();
98
  const text = document.getElementById("embed-input").value;
99
  fetch(hfApiUrl + "embed", {
100
- method: "GET",
101
  headers: {
102
  "Content-Type": "application/json"
103
  },
@@ -114,7 +114,7 @@
114
  const text = document.getElementById("search-input").value;
115
  const n = document.getElementById("n-input").value;
116
  fetch(hfApiUrl + "search", {
117
- method: "GET",
118
  headers: {
119
  "Content-Type": "application/json"
120
  },
 
97
  event.preventDefault();
98
  const text = document.getElementById("embed-input").value;
99
  fetch(hfApiUrl + "embed", {
100
+ method: "POST",
101
  headers: {
102
  "Content-Type": "application/json"
103
  },
 
114
  const text = document.getElementById("search-input").value;
115
  const n = document.getElementById("n-input").value;
116
  fetch(hfApiUrl + "search", {
117
+ method: "POST",
118
  headers: {
119
  "Content-Type": "application/json"
120
  },