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