Spaces:
Runtime error
Runtime error
Comment out apex installation to avoid 20 minute limit of launch on Space
Browse files
model.py
CHANGED
@@ -19,15 +19,15 @@ if os.getenv('SYSTEM') == 'spaces':
|
|
19 |
subprocess.run(
|
20 |
'pip install git+https://github.com/Sleepychord/Image-Local-Attention@43fee31'
|
21 |
.split())
|
22 |
-
subprocess.run('git clone https://github.com/NVIDIA/apex'.split())
|
23 |
-
subprocess.run('git checkout 1403c21'.split(), cwd='apex')
|
24 |
-
with open('patch.apex') as f:
|
25 |
-
|
26 |
-
subprocess.run(
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
subprocess.run('rm -rf apex'.split())
|
31 |
with open('patch') as f:
|
32 |
subprocess.run('patch -p1'.split(), cwd='CogView2', stdin=f)
|
33 |
|
|
|
19 |
subprocess.run(
|
20 |
'pip install git+https://github.com/Sleepychord/Image-Local-Attention@43fee31'
|
21 |
.split())
|
22 |
+
#subprocess.run('git clone https://github.com/NVIDIA/apex'.split())
|
23 |
+
#subprocess.run('git checkout 1403c21'.split(), cwd='apex')
|
24 |
+
#with open('patch.apex') as f:
|
25 |
+
# subprocess.run('patch -p1'.split(), cwd='apex', stdin=f)
|
26 |
+
#subprocess.run(
|
27 |
+
# 'pip install -v --disable-pip-version-check --no-cache-dir --global-option --cpp_ext --global-option --cuda_ext ./'
|
28 |
+
# .split(),
|
29 |
+
# cwd='apex')
|
30 |
+
#subprocess.run('rm -rf apex'.split())
|
31 |
with open('patch') as f:
|
32 |
subprocess.run('patch -p1'.split(), cwd='CogView2', stdin=f)
|
33 |
|