manu commited on
Commit
f972032
β€’
1 Parent(s): 16bb19e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- "google/paligemma-3b-mix-448", torch_dtype=torch.bfloat16, device_map="cuda", token = token).eval()
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()