Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
| 1 |
import os
|
| 2 |
from git import Repo
|
|
|
|
| 3 |
|
| 4 |
access_token = os.environ['AccessTokenToPrivate']
|
| 5 |
Repo.clone_from(f"https://sunyeop.na:{access_token}@huggingface.co/spaces/naverz/zmlops_diffusion_sample.git",
|
|
@@ -8,4 +9,5 @@ Repo.clone_from(f"https://sunyeop.na:{access_token}@huggingface.co/spaces/naverz
|
|
| 8 |
|
| 9 |
print("Clone Done.")
|
| 10 |
|
|
|
|
| 11 |
import repo_directory.app as app
|
|
|
|
| 1 |
import os
|
| 2 |
from git import Repo
|
| 3 |
+
import sys
|
| 4 |
|
| 5 |
access_token = os.environ['AccessTokenToPrivate']
|
| 6 |
Repo.clone_from(f"https://sunyeop.na:{access_token}@huggingface.co/spaces/naverz/zmlops_diffusion_sample.git",
|
|
|
|
| 9 |
|
| 10 |
print("Clone Done.")
|
| 11 |
|
| 12 |
+
sys.path.append(os.path.abspath("./repo_directory"))
|
| 13 |
import repo_directory.app as app
|