ymo2017 commited on
Commit
47ffc6a
·
1 Parent(s): f7a1ff4

add more styling

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -20,8 +20,7 @@ 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
- device = "cpu"
25
 
26
  processor = AutoProcessor.from_pretrained(model_name)
27
  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
 
25
  processor = AutoProcessor.from_pretrained(model_name)
26
  model = AutoModelForImageTextToText.from_pretrained(