bharatcoder commited on
Commit
c79522c
·
verified ·
1 Parent(s): e2db174

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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