Spaces:
Runtime error
Runtime error
Update code/demo.py
Browse files- code/demo.py +1 -1
code/demo.py
CHANGED
@@ -12,7 +12,7 @@ model_path = "pretrained_models/model_qnrf.pth"
|
|
12 |
url = "https://drive.google.com/uc?id=1nnIHPaV9RGqK8JHL645zmRvkNrahD9ru"
|
13 |
gdown.download(url, model_path, quiet=False)
|
14 |
|
15 |
-
device = torch.device('
|
16 |
|
17 |
model = vgg19()
|
18 |
model.to(device)
|
|
|
12 |
url = "https://drive.google.com/uc?id=1nnIHPaV9RGqK8JHL645zmRvkNrahD9ru"
|
13 |
gdown.download(url, model_path, quiet=False)
|
14 |
|
15 |
+
device = torch.device('cpu') # device can be "cpu" or "gpu"
|
16 |
|
17 |
model = vgg19()
|
18 |
model.to(device)
|