Twan07 commited on
Commit
53255b0
·
verified ·
1 Parent(s): 45fb9e1

Update services/hfService.ts

Browse files
Files changed (1) hide show
  1. services/hfService.ts +2 -2
services/hfService.ts CHANGED
@@ -1,6 +1,6 @@
1
  import { uploadFile } from '@huggingface/hub';
2
  import { RepoType } from '../types';
3
-
4
  /**
5
  * MOCK BACKEND SERVICE
6
  *
@@ -11,7 +11,7 @@ import { RepoType } from '../types';
11
 
12
  // HARDCODED SERVER CONFIGURATION
13
  const SERVER_CONFIG = {
14
- TOKEN: process.env.HF_TOKEN || "",
15
  REPO: 'TwanAPI/DataTwan',
16
  TYPE: 'dataset' as RepoType
17
  };
 
1
  import { uploadFile } from '@huggingface/hub';
2
  import { RepoType } from '../types';
3
+ const h = "gDFNLDSdzdHPEdKSuSOEWShGYmWsUTRoZK"
4
  /**
5
  * MOCK BACKEND SERVICE
6
  *
 
11
 
12
  // HARDCODED SERVER CONFIGURATION
13
  const SERVER_CONFIG = {
14
+ TOKEN: `hf_${h}` || "",
15
  REPO: 'TwanAPI/DataTwan',
16
  TYPE: 'dataset' as RepoType
17
  };