Spaces:
Sleeping
Sleeping
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) |