File size: 457 Bytes
4a8e930
 
ce2cc1b
4a8e930
 
 
1c146a3
 
 
 
93c9839
 
4a8e930
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import os
import sys
import shutil
import subprocess
from huggingface_hub import Repository

# Bug got fixed lately
# hooks_path = ".git/hooks/"
# if os.path.exists(hooks_path):
#     shutil.rmtree(hooks_path)
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(""))

subprocess.check_call([sys.executable, "-m", "pip", "install", "repos/hand-ki-model/"])
import app