XiaRho commited on
Commit
01cce23
·
verified ·
1 Parent(s): 5517845

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -10,7 +10,9 @@ import spaces
10
 
11
  DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
12
  print(f"Is CUDA available: {torch.cuda.is_available()}")
13
- print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
 
 
14
  model_choice = {
15
  'SAM': None,
16
  'HQ-SAM': None,
 
10
 
11
  DEVICE = 'cuda' if torch.cuda.is_available() else 'cpu'
12
  print(f"Is CUDA available: {torch.cuda.is_available()}")
13
+ if torch.cuda.is_available():
14
+ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
15
+
16
  model_choice = {
17
  'SAM': None,
18
  'HQ-SAM': None,