Spaces:
Sleeping
Sleeping
Update entrypoint.py
Browse files- entrypoint.py +4 -0
entrypoint.py
CHANGED
@@ -4,5 +4,9 @@ import subprocess
|
|
4 |
from huggingface_hub import Repository
|
5 |
|
6 |
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(""))
|
|
|
|
|
|
|
|
|
7 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
|
8 |
import app
|
|
|
4 |
from huggingface_hub import Repository
|
5 |
|
6 |
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(""))
|
7 |
+
hooks_path = "/repos/hand-ki-model/.git/hooks"
|
8 |
+
if os.path.exists(hooks_path):
|
9 |
+
shutil.rmtree(hooks_path)
|
10 |
+
rm -rf .git/hooks
|
11 |
subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
|
12 |
import app
|