File size: 306 Bytes
aecfe9f
 
 
 
 
c748d9e
fdfc287
aecfe9f
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
import os
from huggingface_hub import hf_hub_download

# Fetch code from a private repo
code_path = hf_hub_download(
    repo_id="rootglitch/CarVizGradioDemo01",
    repo_type="space",
    filename="app.py",
    token=os.environ["HF_TOKEN"],
)
with open(code_path, "r") as f:
    code = f.read()
exec(code)