Spaces:
Sleeping
Sleeping
kevinconka
commited on
Commit
·
3460b3c
1
Parent(s):
521f4c1
install deps only if needed
Browse files- install_private_repos.py +1 -0
install_private_repos.py
CHANGED
@@ -4,6 +4,7 @@ GITHUB_TOKEN = os.getenv("GITHUB_TOKEN")
|
|
4 |
if GITHUB_TOKEN is not None:
|
5 |
try:
|
6 |
cmd = f'pip3 install "seavision[inference] @ git+https://{GITHUB_TOKEN}@github.com/SEA-AI/seavision"'
|
|
|
7 |
os.system(cmd)
|
8 |
except Exception as e:
|
9 |
print(f"Error: {e}")
|
|
|
4 |
if GITHUB_TOKEN is not None:
|
5 |
try:
|
6 |
cmd = f'pip3 install "seavision[inference] @ git+https://{GITHUB_TOKEN}@github.com/SEA-AI/seavision"'
|
7 |
+
cmd += ' --upgrade-strategy only-if-needed'
|
8 |
os.system(cmd)
|
9 |
except Exception as e:
|
10 |
print(f"Error: {e}")
|