detection-demo / install_private_repos.py
kevinconka's picture
Update install_private_repos.py
4162458 verified
raw
history blame
327 Bytes
import os
GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
if GITHUB_TOKEN is not None:
try:
cmd = f'pip3 install "seavision[inference] @ git+https://{GITHUB_TOKEN}@github.com/SEA-AI/seavision@bugfix/try-catch-fiftyone-import"'
os.system(cmd)
except Exception as e:
print(f"Error: {e}")
raise e