ironjr commited on
Commit
e68508d
β€’
1 Parent(s): d47be55

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,8 +95,8 @@ opt.seed = -1
95
 
96
  ### Global variables and data structures
97
 
98
- device = f'cuda:{opt.device}' if opt.device >= 0 else 'cpu'
99
-
100
 
101
  if opt.model is None:
102
  model_dict = {
 
95
 
96
  ### Global variables and data structures
97
 
98
+ device = 'cuda' if torch.cuda.is_available() else 'cpu'
99
+ print(device)
100
 
101
  if opt.model is None:
102
  model_dict = {