add more styling
Browse files
app.py
CHANGED
@@ -20,7 +20,8 @@ from transformers.image_utils import load_image
|
|
20 |
|
21 |
model_name = "stepfun-ai/GOT-OCR-2.0-hf"
|
22 |
|
23 |
-
device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
24 |
|
25 |
processor = AutoProcessor.from_pretrained(model_name)
|
26 |
model = AutoModelForImageTextToText.from_pretrained(
|
|
|
20 |
|
21 |
model_name = "stepfun-ai/GOT-OCR-2.0-hf"
|
22 |
|
23 |
+
# device = "cuda" if torch.cuda.is_available() else "cpu"
|
24 |
+
device = "cpu"
|
25 |
|
26 |
processor = AutoProcessor.from_pretrained(model_name)
|
27 |
model = AutoModelForImageTextToText.from_pretrained(
|