enzostvs HF Staff commited on
Commit
56f5287
·
1 Parent(s): 6b8f11b

public to private env key

Browse files
Files changed (2) hide show
  1. app/api/route.ts +1 -1
  2. app/api/uploader.ts +1 -1
app/api/route.ts CHANGED
@@ -8,7 +8,7 @@ export async function POST(
8
  request: Request,
9
  ) {
10
  const global_headers = {
11
- Authorization: `Bearer ${process.env.NEXT_PUBLIC_APP_HF_TOKEN}`,
12
  'Content-Type': 'application/json',
13
  ['x-use-cache']: "0"
14
  }
 
8
  request: Request,
9
  ) {
10
  const global_headers = {
11
+ Authorization: `Bearer ${process.env.NEXT_APP_HF_TOKEN}`,
12
  'Content-Type': 'application/json',
13
  ['x-use-cache']: "0"
14
  }
app/api/uploader.ts CHANGED
@@ -3,7 +3,7 @@ import type { RepoDesignation, Credentials } from "./../../node_modules/@hugging
3
 
4
  export const UploaderDataset = async (blob: Blob, name: string) => {
5
  const repo: RepoDesignation = { type: "dataset", name: "enzostvs/stable-diffusion-tpu-generations" };
6
- const credentials: Credentials = { accessToken: process.env.NEXT_PUBLIC_APP_HF_TOKEN as string };
7
 
8
  const res: any = await uploadFiles({
9
  repo,
 
3
 
4
  export const UploaderDataset = async (blob: Blob, name: string) => {
5
  const repo: RepoDesignation = { type: "dataset", name: "enzostvs/stable-diffusion-tpu-generations" };
6
+ const credentials: Credentials = { accessToken: process.env.NEXT_APP_HF_TOKEN as string };
7
 
8
  const res: any = await uploadFiles({
9
  repo,