upgrade your gradio for API support

#1
by radames - opened

this will enable the latest implementation with API enabled

with that you will be able to use the API by POST method and body with data

example

fetch("https://hf.space/embed/summerstay/vectorAPI/api/predict", {
  method: "POST",
  body: JSON.stringify({ data: [" Hello World"] }),
  headers: { "Content-Type": "application/json" },
})
  .then(function (response) {
    return response.json();
  })
  .then(function (json_response) {
    console.log(json_response);
  });
summerstay changed pull request status to merged

Sign up or log in to comment