Spaces:
Running
Running
fix
Browse filesFiles changed (3)
128 unmodified lines129130131132133134135128 unmodified linespath: subFileInfo.path,revision: commitId,raw: true})const content = await blob?.text();if (content) {128 unmodified lines129130131132133134135136137138139140128 unmodified linespath: subFileInfo.path,revision: commitId,raw: true}).catch((error) => {return null;});if (!blob) {continue;}const content = await blob?.text();if (content) {
65 unmodified lines6667686970717265 unmodified linesaccessToken: user.token as string,path: fileInfo.path,raw: true});if (blob) {const arrayBuffer = await blob.arrayBuffer();65 unmodified lines66676869707172737475767765 unmodified linesaccessToken: user.token as string,path: fileInfo.path,raw: true}).catch((error) => {return null;});if (!blob) {continue;}if (blob) {const arrayBuffer = await blob.arrayBuffer();
135 unmodified lines136137138139140141142135 unmodified linesif (allowedFilesExtensions.includes(subFileInfo.path.split(".").pop() || "")) {files.push(`https://huggingface.co/spaces/${namespace}/${repoId}/resolve/main/${subFileInfo.path}`);} else {const blob = await downloadFile({ repo, accessToken: user.token as string, path: subFileInfo.path, raw: true });const html = await blob?.text();if (!html) {continue;135 unmodified lines136137138139140141142143144145146147135 unmodified linesif (allowedFilesExtensions.includes(subFileInfo.path.split(".").pop() || "")) {files.push(`https://huggingface.co/spaces/${namespace}/${repoId}/resolve/main/${subFileInfo.path}`);} else {const blob = await downloadFile({ repo, accessToken: user.token as string, path: subFileInfo.path, raw: true }).catch((error) => {return null;});if (!blob) {continue;}const html = await blob?.text();if (!html) {continue;
app/api/me/projects/[namespace]/[repoId]/commits/[commitId]/promote/route.ts+6-1
app/api/me/projects/[namespace]/[repoId]/download/route.ts+5
app/api/me/projects/[namespace]/[repoId]/route.ts+6-1