Spaces:
Runtime error
Runtime error
Commit
·
efb1452
1
Parent(s):
58bfa53
Try with use_fast=True
Browse files
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():
|