LTT commited on
Commit
c092739
1 Parent(s): b45bfc8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,5 +1,10 @@
1
  import spaces
2
  import os
 
 
 
 
 
3
  # os.environ["CXX"] = os.popen("which g++").read().strip()
4
  # os.environ["CC"] = os.popen("which gcc").read().strip()
5
  os.environ['CUDA_LAUNCH_BLOCKING']="1"
@@ -34,12 +39,6 @@ import tempfile
34
  from huggingface_hub import hf_hub_download
35
  import shlex
36
 
37
- subprocess.run(
38
- shlex.split(
39
- "pip install ./nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
40
- )
41
- )
42
-
43
  def install_cuda_toolkit():
44
  # CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda_11.8.0_520.61.05_linux.run"
45
  # CUDA_TOOLKIT_URL = "https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run"
 
1
  import spaces
2
  import os
3
+ subprocess.run(
4
+ shlex.split(
5
+ "pip install ./nvdiffrast-0.3.1.torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
6
+ )
7
+ )
8
  # os.environ["CXX"] = os.popen("which g++").read().strip()
9
  # os.environ["CC"] = os.popen("which gcc").read().strip()
10
  os.environ['CUDA_LAUNCH_BLOCKING']="1"
 
39
  from huggingface_hub import hf_hub_download
40
  import shlex
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"