Spaces:
Running
Running
Update OCR.py
Browse files
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-
|
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 |
|