Use upload_large_folder for 24k+ WAV uploads
Browse files369 unmodified lines370371372373374375376377378379380381382383384369 unmodified linesprint(f" Speakers Breakdown:\n{df['speaker'].value_counts()}")print("=" * 50 + "\n")print(f"Pushing curated dataset to Hugging Face: {hf_repo_id}...")api = HfApi()api.create_repo(repo_id=hf_repo_id, repo_type="dataset", private=private, exist_ok=True)api.upload_folder(folder_path=self.output_dir,repo_id=hf_repo_id,repo_type="dataset",commit_message=f"Upload {total_hours:.1f}h curated 24kHz Hindi TTS dataset",)print(f"\n🎉 Dataset successfully published to: https://huggingface.co/datasets/{hf_repo_id}\n")369 unmodified lines370371372373374375376377378379380381382383369 unmodified linesprint(f" Speakers Breakdown:\n{df['speaker'].value_counts()}")print("=" * 50 + "\n")print(f"Pushing curated dataset to Hugging Face using upload_large_folder: {hf_repo_id}...")api = HfApi()api.create_repo(repo_id=hf_repo_id, repo_type="dataset", private=private, exist_ok=True)api.upload_large_folder(folder_path=self.output_dir,repo_id=hf_repo_id,repo_type="dataset",)print(f"\n🎉 Dataset successfully published to: https://huggingface.co/datasets/{hf_repo_id}\n")
kaggle_data_collector.py+2-3