Tingman commited on
Commit
7b9c275
·
verified ·
1 Parent(s): 9d5bb44

Update gradio_app.py

Browse files
Files changed (1) hide show
  1. gradio_app.py +1 -1
gradio_app.py CHANGED
@@ -17,7 +17,7 @@ torch.backends.cudnn.benchmark = True
17
  class MatchStereoDemo:
18
  def __init__(self):
19
  self.has_cuda = torch.cuda.is_available()
20
- self.device = torch.device('cuda:0') if self.has_cuda else 'cpu'
21
  self.model = None
22
  self.current_variant = None
23
  self.current_mode = None
 
17
  class MatchStereoDemo:
18
  def __init__(self):
19
  self.has_cuda = torch.cuda.is_available()
20
+ self.device = "cuda" if self.has_cuda else 'cpu'
21
  self.model = None
22
  self.current_variant = None
23
  self.current_mode = None