test-req / server.ts
coyotte508's picture
coyotte508 HF staff
Update server.ts
723f44a
raw
history blame contribute delete
656 Bytes
import Koa from "koa";
const app = new Koa();
app.use(async (ctx) => {
ctx.body = {
eu: {
headStatus: (await fetch("https://huggingface.co/eu-test/gpt2/resolve/main/64-8bits.tflite", {method: "HEAD"})).status,
getStatus: (await fetch("https://huggingface.co/eu-test/gpt2/resolve/main/64-8bits.tflite", {method: "GET"})).status
},
us: {
headStatus: (await fetch("https://huggingface.co/gpt2/resolve/main/64-8bits.tflite", {method: "HEAD"})).status,
getStatus: (await fetch("https://huggingface.co/gpt2/resolve/main/64-8bits.tflite", {method: "GET"})).status
}
};
});
app.listen(7860);