""" ARCHIVED: push_upload_to_space.py This helper has been archived and removed from active use inside the Space repository. If you need to programmatically upload, restore from your development copy or use the `huggingface_hub` CLI. """ import os from dotenv import load_dotenv from huggingface_hub import upload_folder load_dotenv() HF = os.getenv('HF') if not HF: print('ERROR: HF token not found in .env as HF') raise SystemExit(1) repo_id = 'gowshiselva/whispermonk' print('Uploading folder to', repo_id) upload_folder( folder_path='.', path_in_repo='.', repo_id=repo_id, repo_type='space', token=HF, ignore_patterns=['.git/*','generated_images/*','*.env','*.env.bak'] ) print('Upload complete')