Spaces:
Sleeping
Sleeping
Update entrypoint.py
Browse files- entrypoint.py +3 -3
entrypoint.py
CHANGED
@@ -3,10 +3,10 @@ import sys
|
|
3 |
import subprocess
|
4 |
from huggingface_hub import Repository
|
5 |
|
6 |
-
|
7 |
-
hooks_path = "/repos/hand-ki-model/.git/hooks"
|
8 |
if os.path.exists(hooks_path):
|
9 |
shutil.rmtree(hooks_path)
|
10 |
-
|
|
|
11 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
|
12 |
import app
|
|
|
3 |
import subprocess
|
4 |
from huggingface_hub import Repository
|
5 |
|
6 |
+
hooks_path = ".git/hooks/pre-push"
|
|
|
7 |
if os.path.exists(hooks_path):
|
8 |
shutil.rmtree(hooks_path)
|
9 |
+
Repository("repos/hand-ki-model", f"https://oauth2:{os.getenv('HANDKIGIT5')}@git5.cs.fau.de/folle/hand-ki-model.git", use_auth_token=os.getenv(""))
|
10 |
+
|
11 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
|
12 |
import app
|