from huggingface_hub import upload_file upload_file( path_or_fileobj="data/module-A/law/citizenship_AIN_2006.pdf", # Path to your binary file path_in_repo="data/module-A/law/citizenship_AIN_2006.pdf", # Where you want it stored in the repo repo_id="khagu/setu", # Your Hugging Face space or repo name repo_type="space", # Can also be "model", "dataset", or "repo" )