p3nguknight commited on
Commit
efb1452
·
1 Parent(s): 58bfa53

Try with use_fast=True

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -98,7 +98,7 @@ def retrieve(query: str, ds, images, k):
98
 
99
  model.load_adapter(COLPALI_MODEL_PATH)
100
  model = model.eval()
101
- processor = ColPaliProcessor.from_pretrained(COLPALI_MODEL_PATH)
102
 
103
  qs = []
104
  with torch.no_grad():
 
98
 
99
  model.load_adapter(COLPALI_MODEL_PATH)
100
  model = model.eval()
101
+ processor = ColPaliProcessor.from_pretrained(COLPALI_MODEL_PATH, use_fast=True)
102
 
103
  qs = []
104
  with torch.no_grad():