Spaces:
Running
Running
Update services/hfService.ts
Browse files- 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:
|
| 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 |
};
|