from huggingface_hub import HfApi # Initialize API api = HfApi() # Hugging Face Space repo repo_id = "Satyanjay/Tourism_App" # Files to push files = ["app.py", "requirements.txt", "Dockerfile"] for file in files: api.upload_file( path_or_fileobj=file, path_in_repo=file, repo_id=repo_id, repo_type="space" ) print("All deployment files uploaded to Hugging Face Space!")