T1ckbase commited on
Commit
5c807aa
·
1 Parent(s): 8539212
Files changed (1) hide show
  1. main.ts +1 -1
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 >= 1) {
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,