Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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/hyperfuncs_gemini_ui.git",
|
| 7 |
+
"./repo_directory")
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
print("Clone Done.")
|
| 11 |
+
|
| 12 |
+
sys.path.append(os.path.abspath("./repo_directory"))
|
| 13 |
+
import repo_directory.app as app
|