davanstrien HF staff commited on
Commit
ca4bcc4
β€’
1 Parent(s): 5192410

use large folder upload

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -118,11 +118,11 @@ def process_pdfs(
118
  repo_type="dataset",
119
  private=private_repo,
120
  )
121
- hf_api.upload_folder(
122
- folder_path=images_dir,
123
  repo_id=hf_repo,
124
  repo_type="dataset",
125
- path_in_repo="images",
126
  )
127
 
128
  # Determine size category
 
118
  repo_type="dataset",
119
  private=private_repo,
120
  )
121
+ hf_api.upload_large_folder(
122
+ folder_path=temp_dir,
123
  repo_id=hf_repo,
124
  repo_type="dataset",
125
+ # path_in_repo="images",
126
  )
127
 
128
  # Determine size category