CoolFace
Apppublic

Annotation-AI/fast-segment-everything

sourceHugging Faceupdated 3y agoView on Hugging Face
3likes
app.py18 linesDownload Raw Back to root
1import os2 3 4github_user = os.environ.get("GITHUB_USER")5github_token = os.environ.get("GITHUB_TOKEN")6 7repo_name = "annotation-ai/mlwiz-technical-demo"8 9os.system(f"export GITHUB_USER={github_user}")10os.system(f"export GITHUB_TOKEN={github_token}")11os.system(f"git clone https://{github_user}:{github_token}@github.com/{repo_name}")12 13cwd0 = os.getcwd()14cwd1 = os.path.join(cwd0, "mlwiz-technical-demo/sam")15os.chdir(cwd1)16os.system("pip install -r requirements.txt")17os.system("python app_everything.py")18