methodw commited on
Commit
d24bb26
·
1 Parent(s): c0c77aa

change torch device to cpu only

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ import faiss
8
 
9
 
10
  # Init similarity search AI model and processor
11
- device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
12
  processor = AutoImageProcessor.from_pretrained("facebook/dinov2-large")
13
  model = AutoModel.from_pretrained("facebook/dinov2-large")
14
  model.config.return_dict = False # Set return_dict to False for JIT tracing
 
8
 
9
 
10
  # Init similarity search AI model and processor
11
+ device = torch.device("cpu")
12
  processor = AutoImageProcessor.from_pretrained("facebook/dinov2-large")
13
  model = AutoModel.from_pretrained("facebook/dinov2-large")
14
  model.config.return_dict = False # Set return_dict to False for JIT tracing