Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -80,8 +80,8 @@ opt = parser.parse_args()
|
|
80 |
|
81 |
### Global variables and data structures
|
82 |
|
83 |
-
|
84 |
-
device = 'cuda'
|
85 |
|
86 |
|
87 |
model_dict = {
|
|
|
80 |
|
81 |
### Global variables and data structures
|
82 |
|
83 |
+
device = f'cuda:{opt.device}' if opt.device >= 0 else 'cpu'
|
84 |
+
# device = 'cuda'
|
85 |
|
86 |
|
87 |
model_dict = {
|