Spaces:
Sleeping
Sleeping
Create app.py
Browse files
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)
|