add tag on update too
Browse files14 unmodified lines15161718192021115 unmodified lines13713813914014114214314412 unmodified lines15715815916016116214 unmodified linesimport checkUser from "./middlewares/checkUser.js";import { PROVIDERS } from "./utils/providers.js";import { type } from "os";// Load environment variables from .env filedotenv.config();115 unmodified linesconst 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`;}const file = new Blob([newHtml], { type: "text/html" });file.name = "index.html"; // Add name property to the Blob14 unmodified lines151617181920115 unmodified lines13613713813914014112 unmodified lines15415515615715815916014 unmodified linesimport checkUser from "./middlewares/checkUser.js";import { PROVIDERS } from "./utils/providers.js";// Load environment variables from .env filedotenv.config();115 unmodified linesconst repoId = `${username}/${newTitle}`;repo.name = repoId;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