Tourism_App / deploy.py
Satyanjay's picture
Upload 2 files
2505774 verified
raw
history blame contribute delete
433 Bytes
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!")