Pavan147 commited on
Commit
ea5c0d6
·
verified ·
1 Parent(s): df46f51

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -74,7 +74,7 @@ from PIL import Image, ImageOps
74
 
75
  # Load model & processor once at startup
76
  processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
77
- model = AutoModelForVision2Seq.from_pretrained("ds4sd/SmolDocling-256M-preview", torch_dtype=torch.bfloat16).to("cuda")
78
 
79
  def add_random_padding(image, min_percent=0.1, max_percent=0.10):
80
  image = image.convert("RGB")
 
74
 
75
  # Load model & processor once at startup
76
  processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
77
+ model = AutoModelForVision2Seq.from_pretrained("ds4sd/SmolDocling-256M-preview")
78
 
79
  def add_random_padding(image, min_percent=0.1, max_percent=0.10):
80
  image = image.convert("RGB")