LEAHWA commited on
Commit
95e79b5
1 Parent(s): 2cb7fe2

Update OCR.py

Browse files
Files changed (1) hide show
  1. OCR.py +1 -1
OCR.py CHANGED
@@ -8,7 +8,7 @@ HF_TOKEN = os.environ.get("HF_TOKEN")
8
  os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python'
9
 
10
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
11
- model_id = "google/paligemma-3b-mix-448"
12
  model = PaliGemmaForConditionalGeneration.from_pretrained(model_id).to(device)
13
  processor = AutoProcessor.from_pretrained(model_id)
14
 
 
8
  os.environ['PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION'] = 'python'
9
 
10
  device = "cuda:0" if torch.cuda.is_available() else "cpu"
11
+ model_id = "google/paligemma-3b-mix-224"
12
  model = PaliGemmaForConditionalGeneration.from_pretrained(model_id).to(device)
13
  processor = AutoProcessor.from_pretrained(model_id)
14