my_gradio / js /app /after_build.js
xray918's picture
Upload folder using huggingface_hub
0ad74ed verified
raw
history blame contribute delete
360 Bytes
import { writeFileSync } from "fs";
import { resolve } from "path";
import { fileURLToPath } from "url";
const __dirname = fileURLToPath(import.meta.url);
const out_path = resolve(__dirname, "../../../gradio/templates/node/build");
writeFileSync(
resolve(out_path, "package.json"),
JSON.stringify({ name: "gradio-server-app", type: "module" }, null, 2)
);