Runs every 1 days
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { fetch } from "https://esm.town/v/std/fetch";
export const keepCloudClassifierWarmV4 = async () => {
const imgDataUrl =
"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";
const response = await fetch(
"https://kaicathy-cloudid.hf.space/run/predict",
{
method: "POST",
body: JSON.stringify({ data: [imgDataUrl] }),
headers: { "Content-Type": "application/json" },
}
);
const jsonBody = await response.json();
console.log(JSON.stringify(jsonBody));
};