Spaces:
Running
Running
Update gradio_app.py
Browse files- 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 =
|
| 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
|