Spaces:
Runtime error
Runtime error
init space
Browse files- .gitignore +1 -0
- app.py +12 -0
- requirements.txt +1 -0
.gitignore
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
.idea
|
app.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
from git import Repo
|
3 |
+
|
4 |
+
url = '[email protected]:spaces/naverz/zmlops_diffusion_sample.git'
|
5 |
+
access_token = os.environ['AccessTokenToPrivate']
|
6 |
+
Repo.clone_from(f"https://nasun:{access_token}@hf.co:spaces/naverz/zmlops_diffusion_sample.git",
|
7 |
+
"./repo_directory")
|
8 |
+
|
9 |
+
|
10 |
+
print("Clone Done.")
|
11 |
+
|
12 |
+
import repo_directory.main as inside_code
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
gitpython
|