Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ MODEL = os.getenv(
|
|
36 |
torch.backends.cudnn.deterministic = True
|
37 |
torch.backends.cudnn.benchmark = False
|
38 |
|
39 |
-
device = torch.device("cuda:0" if torch.cuda.is_available() else
|
40 |
|
41 |
|
42 |
def load_pipeline(model_name):
|
|
|
36 |
torch.backends.cudnn.deterministic = True
|
37 |
torch.backends.cudnn.benchmark = False
|
38 |
|
39 |
+
device = torch.device("cuda:0" if torch.cuda.is_available() else torch.cpu.device.is_available())
|
40 |
|
41 |
|
42 |
def load_pipeline(model_name):
|