Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,7 +6,7 @@ from PIL import Image
|
|
| 6 |
processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
|
| 7 |
model = AutoModelForImageTextToText.from_pretrained("ds4sd/SmolDocling-256M-preview")
|
| 8 |
|
| 9 |
-
def smoldocling_readimage(image, prompt_text) -> str:
|
| 10 |
"""
|
| 11 |
Extract text and structured content from document images using SmolDocling model.
|
| 12 |
|
|
|
|
| 6 |
processor = AutoProcessor.from_pretrained("ds4sd/SmolDocling-256M-preview")
|
| 7 |
model = AutoModelForImageTextToText.from_pretrained("ds4sd/SmolDocling-256M-preview")
|
| 8 |
|
| 9 |
+
def smoldocling_readimage(image: PIL.Image.Image, prompt_text: str) -> str:
|
| 10 |
"""
|
| 11 |
Extract text and structured content from document images using SmolDocling model.
|
| 12 |
|