Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,10 +16,10 @@ from tqdm import tqdm
|
|
16 |
from transformers import AutoProcessor
|
17 |
|
18 |
# Load model
|
19 |
-
model_name = "vidore/colpali"
|
20 |
token = os.environ.get("HF_TOKEN")
|
21 |
model = ColPali.from_pretrained(
|
22 |
-
"
|
23 |
|
24 |
model.load_adapter(model_name)
|
25 |
model = model.eval()
|
|
|
16 |
from transformers import AutoProcessor
|
17 |
|
18 |
# Load model
|
19 |
+
model_name = "vidore/colpali-v1.2"
|
20 |
token = os.environ.get("HF_TOKEN")
|
21 |
model = ColPali.from_pretrained(
|
22 |
+
"vidore/colpaligemma-3b-pt-448-base", torch_dtype=torch.bfloat16, device_map="cuda", token = token).eval()
|
23 |
|
24 |
model.load_adapter(model_name)
|
25 |
model = model.eval()
|