Spaces:
Running
on
Zero
Running
on
Zero
ohayonguy
commited on
Commit
·
d219ac8
1
Parent(s):
ce63530
test
Browse files
app.py
CHANGED
@@ -1,11 +1,3 @@
|
|
1 |
-
import subprocess
|
2 |
-
import sys
|
3 |
-
|
4 |
-
def install(package):
|
5 |
-
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
|
6 |
-
|
7 |
-
install('natten==0.17.1')
|
8 |
-
|
9 |
import os
|
10 |
if os.getenv('SPACES_ZERO_GPU') == "true":
|
11 |
os.environ['SPACES_ZERO_GPU'] = "1"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
2 |
if os.getenv('SPACES_ZERO_GPU') == "true":
|
3 |
os.environ['SPACES_ZERO_GPU'] = "1"
|