File size: 347 Bytes
48ea831
 
 
 
 
521f4c1
3460b3c
48ea831
 
 
66174f6
1
2
3
4
5
6
7
8
9
10
11
12
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"'
        cmd += ' --upgrade-strategy only-if-needed'
        os.system(cmd)
    except Exception as e:
        print(f"Error: {e}")
        raise e