Spaces:
Sleeping
Sleeping
T1ckbase
commited on
Commit
·
5c807aa
1
Parent(s):
8539212
100
Browse files
main.ts
CHANGED
@@ -20,7 +20,7 @@ Deno.serve({ port: 7860 }, async () => {
|
|
20 |
async function main() {
|
21 |
const files = await getFilesInDirectory('./images');
|
22 |
console.info('files:', files.length);
|
23 |
-
if (files.length >=
|
24 |
const repo: hub.RepoDesignation = { type: 'dataset', name: REPO_ID };
|
25 |
const result = await hub.uploadFiles({
|
26 |
repo,
|
|
|
20 |
async function main() {
|
21 |
const files = await getFilesInDirectory('./images');
|
22 |
console.info('files:', files.length);
|
23 |
+
if (files.length >= 100) {
|
24 |
const repo: hub.RepoDesignation = { type: 'dataset', name: REPO_ID };
|
25 |
const result = await hub.uploadFiles({
|
26 |
repo,
|