from huggingface_hub import HfApi api = HfApi() # 1. Apne repo ka path yahan likhein (e.g., "username/my-windows-repo") repo_id = "YOUR_USERNAME/YOUR_REPO_NAME" # 2. Archive.org ka direct link source_url = "https://archive.org/download/windows-7x-86-supernano-final/Windows7SuperNanoLite.iso" print("Remote ki upload start ho raha hai...") try: api.add_from_url( url=source_url, path_in_repo="Windows7SuperNanoLite.iso", # Repo mein kis naam se dikhe repo_id=repo_id, repo_type="model" # Agar aapne 'model' repo banaya hai ) print("Request submit ho gayi hai! Hugging Face backend par file transfer kar raha hai.") print(f"Apni files yahan check karein: https://huggingface.co/{repo_id}") except Exception as e: print(f"Kuch error aaya: {e}")