LTT commited on
Commit
ef84147
·
verified ·
1 Parent(s): 7a8bf4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -2,11 +2,15 @@ import spaces
2
  import os
3
  import subprocess
4
  import shlex
5
- subprocess.run(
6
- shlex.split(
7
- "pip install ./nvdiffrast-0.3.1+torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
8
- )
9
- )
 
 
 
 
10
  # target_path = "/root/.cache/torch_extensions/py310_cu121"
11
  # --target {target_path}
12
  # os.makedirs(target_path, exist_ok=False)
 
2
  import os
3
  import subprocess
4
  import shlex
5
+ # subprocess.run(
6
+ # shlex.split(
7
+ # "pip install ./nvdiffrast-0.3.1+torch-cp310-cp310-linux_x86_64.whl --force-reinstall --no-deps"
8
+ # )
9
+ # )
10
+ subprocess.run([
11
+ "pip", "install", "--force-reinstall", "--no-deps",
12
+ "./nvdiffrast-0.3.1+torch-cp310-cp310-linux_x86_64.whl"
13
+ ])
14
  # target_path = "/root/.cache/torch_extensions/py310_cu121"
15
  # --target {target_path}
16
  # os.makedirs(target_path, exist_ok=False)