gokaygokay commited on
Commit
0b32f48
·
verified ·
1 Parent(s): 5af7e79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -12,12 +12,14 @@ 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
  import shutil
22
 
23
  def find_cuda():
 
12
  from gradio_litmodel3d import LitModel3D
13
  from huggingface_hub import login
14
  import subprocess
15
+
16
  dtype = torch.bfloat16
17
 
18
  torch.backends.cuda.matmul.allow_tf32 = True
19
  huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
20
 
21
+ device = torch.device('cuda')
22
+
23
  import shutil
24
 
25
  def find_cuda():