Spaces:
Running
on
T4
Running
on
T4
Changed to direct call to subprocess.run
Browse files
app.py
CHANGED
@@ -20,6 +20,7 @@ import matplotlib.pyplot as plt
|
|
20 |
import io
|
21 |
from enum import Enum
|
22 |
import os
|
|
|
23 |
from subprocess import call
|
24 |
os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
|
25 |
cwd = os.getcwd()
|
@@ -46,7 +47,11 @@ def build_multiscale_deform():
|
|
46 |
|
47 |
build_custom_prompter()
|
48 |
from gradio_image_prompter import ImagePrompter
|
49 |
-
|
|
|
|
|
|
|
|
|
50 |
#print("torch version")
|
51 |
#print(torch.version.cuda)
|
52 |
#install_add_dependencies()
|
|
|
20 |
import io
|
21 |
from enum import Enum
|
22 |
import os
|
23 |
+
import subprocess
|
24 |
from subprocess import call
|
25 |
os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
|
26 |
cwd = os.getcwd()
|
|
|
47 |
|
48 |
build_custom_prompter()
|
49 |
from gradio_image_prompter import ImagePrompter
|
50 |
+
subprocess.run(
|
51 |
+
shlex.split(
|
52 |
+
"pip install wheel/diff_gaussian_rasterization-0.0.0-cp310-cp310-linux_x86_64.whl"
|
53 |
+
)
|
54 |
+
)
|
55 |
#print("torch version")
|
56 |
#print(torch.version.cuda)
|
57 |
#install_add_dependencies()
|