Update app.py
Browse files
app.py
CHANGED
@@ -33,6 +33,12 @@ import sys
|
|
33 |
import tempfile
|
34 |
from huggingface_hub import hf_hub_download
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
def install_cuda_toolkit():
|
37 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
38 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|
|
|
33 |
import tempfile
|
34 |
from huggingface_hub import hf_hub_download
|
35 |
|
36 |
+
subprocess.run(
|
37 |
+
shlex.split(
|
38 |
+
"pip install ./nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
|
39 |
+
)
|
40 |
+
)
|
41 |
+
|
42 |
def install_cuda_toolkit():
|
43 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
|
44 |
# CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
|