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