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);