Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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"
|
| 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")
|