promptsai commited on
Commit
c36ec65
·
verified ·
1 Parent(s): 7704533

Update code/demo.py

Browse files
Files changed (1) hide show
  1. 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('cuda') # device can be "cpu" or "gpu"
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)