Spaces:
Runtime error
Runtime error
Download app.py from Annotation-AI/fast-segment-everything: direct link, hf CLI and curl.
- Browser
- Download file 505 Bytes
-
https://huggingface.co/spaces/Annotation-AI/fast-segment-everything/resolve/main/app.py
- Command line
-
hf download hf://spaces/Annotation-AI/fast-segment-everything/app.py
-
curl -L -o app.py https://huggingface.co/spaces/Annotation-AI/fast-segment-everything/resolve/main/app.py
505 Bytes
| import os | |
| github_user = os.environ.get("GITHUB_USER") | |
| github_token = os.environ.get("GITHUB_TOKEN") | |
| repo_name = "annotation-ai/mlwiz-technical-demo" | |
| os.system(f"export GITHUB_USER={github_user}") | |
| os.system(f"export GITHUB_TOKEN={github_token}") | |
| os.system(f"git clone https://{github_user}:{github_token}@github.com/{repo_name}") | |
| cwd0 = os.getcwd() | |
| cwd1 = os.path.join(cwd0, "mlwiz-technical-demo/sam") | |
| os.chdir(cwd1) | |
| os.system("pip install -r requirements.txt") | |
| os.system("python app_everything.py") | |