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

hooks_path = ".git/hooks/pre-push"
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