DeepNAPSI / entrypoint.py
lfolle's picture
Update entrypoint.py
ce2cc1b
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