Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -95,8 +95,8 @@ opt.seed = -1
|
|
95 |
|
96 |
### Global variables and data structures
|
97 |
|
98 |
-
device =
|
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 = {
|