Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
3f0fac3
1
Parent(s):
4898aeb
nvcc
Browse files
app.py
CHANGED
|
@@ -11,13 +11,15 @@ from sf3d.system import SF3D
|
|
| 11 |
import sf3d.utils as sf3d_utils
|
| 12 |
from gradio_litmodel3d import LitModel3D
|
| 13 |
from huggingface_hub import login
|
| 14 |
-
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 16 |
dtype = torch.bfloat16
|
| 17 |
|
| 18 |
torch.backends.cuda.matmul.allow_tf32 = True
|
| 19 |
huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
|
| 20 |
|
|
|
|
|
|
|
| 21 |
login(token=huggingface_token)
|
| 22 |
# Set up environment and cache
|
| 23 |
cache_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "models")
|
|
|
|
| 11 |
import sf3d.utils as sf3d_utils
|
| 12 |
from gradio_litmodel3d import LitModel3D
|
| 13 |
from huggingface_hub import login
|
| 14 |
+
import subprocess
|
| 15 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 16 |
dtype = torch.bfloat16
|
| 17 |
|
| 18 |
torch.backends.cuda.matmul.allow_tf32 = True
|
| 19 |
huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
|
| 20 |
|
| 21 |
+
print(subprocess.check_output(["nvcc", "--version"]).decode("utf-8"))
|
| 22 |
+
|
| 23 |
login(token=huggingface_token)
|
| 24 |
# Set up environment and cache
|
| 25 |
cache_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "models")
|