File size: 433 Bytes
2505774
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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!")