Spaces:
Sleeping
Sleeping
add tag on update too
Browse files14 unmodified lines15161718181920115 unmodified lines13613713814014113914014112 unmodified lines15415515615715815916014 unmodified lines
import checkUser from "./middlewares/checkUser.js";import { PROVIDERS } from "./utils/providers.js";import { type } from "os";
// Load environment variables from .env filedotenv.config();115 unmodified lines const repoId = `${username}/${newTitle}`; repo.name = repoId;
newHtml = html.replace(/<\/body>/, `${getPTag(repoId)}</body>`);
await createRepo({ repo, accessToken: hf_token,12 unmodified linesCheck out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference`; }
newHtml = html.replace(/<\/body>/, `${getPTag(repo.name)}</body>`); const file = new Blob([newHtml], { type: "text/html" }); file.name = "index.html"; // Add name property to the Blob
server.js+1-3