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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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):
10
  """
11
  Extract text and structured content from document images using SmolDocling model.
12
 
@@ -67,8 +67,7 @@ def smoldocling_readimage(image, prompt_text):
67
  with gr.Blocks() as demo:
68
  gr.Markdown(
69
  """
70
- This is a MCP only tool for RS Studies
71
- This connects to a remote chromadb instance.
72
  This tool is MCP-only, so it does not have a UI.
73
  """
74
  )
 
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
 
 
67
  with gr.Blocks() as demo:
68
  gr.Markdown(
69
  """
70
+ This is a MCP only tool for conversion using smoldocling
 
71
  This tool is MCP-only, so it does not have a UI.
72
  """
73
  )