File size: 290 Bytes
7a1aaec
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import shlex
import subprocess

from huggingface_hub import HfApi

api = HfApi()
api.snapshot_download(repo_id="hysts-samples/sample-private-repo", repo_type="space", local_dir=".")
subprocess.run(shlex.split("pip install -r requirements.txt"))
subprocess.run(shlex.split("python app.py"))