rootglitch commited on
Commit
aecfe9f
·
verified ·
1 Parent(s): c5a4ef2

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ from huggingface_hub import hf_hub_download
3
+
4
+ # Fetch code from a private repo
5
+ code_path = hf_hub_download(
6
+ repo_id="https://huggingface.co/spaces/rootglitch/CarVizGradioDemo01",
7
+ filename="app.py",
8
+ token=os.environ["HF_TOKEN"],
9
+ )
10
+ with open(code_path, "r") as f:
11
+ code = f.read()
12
+ exec(code)