Tonic commited on
Commit
15f88a9
·
verified ·
1 Parent(s): 0466b39

adds interface and mcp docstring descriptions

Browse files
Files changed (1) hide show
  1. app.py +5 -8
app.py CHANGED
@@ -381,9 +381,8 @@ with gr.Blocks(title="Nanonets-OCR-s: Advanced Document Intelligence", theme=gr.
381
  with gr.Group():
382
  gr.Markdown("### 📤 Document Upload & Configuration")
383
  file_input = gr.Image(
384
- label="Upload Document",
385
- height=200,
386
- info="Supported formats: PDF, JPEG, PNG, TIFF"
387
  )
388
 
389
  with gr.Row():
@@ -393,14 +392,12 @@ with gr.Blocks(title="Nanonets-OCR-s: Advanced Document Intelligence", theme=gr.
393
  maximum=8192,
394
  value=4096,
395
  step=512,
396
- label="Max Tokens per Page",
397
- info="Higher values = more detailed extraction"
398
  )
399
  with gr.Column(scale=1):
400
  with_img_desc_checkbox = gr.Checkbox(
401
- label="Include Image Descriptions",
402
- value=False,
403
- info="Add AI-generated descriptions for images"
404
  )
405
 
406
  extract_btn = gr.Button(
 
381
  with gr.Group():
382
  gr.Markdown("### 📤 Document Upload & Configuration")
383
  file_input = gr.Image(
384
+ label="Upload Document (Supported formats: PDF, JPEG, PNG, TIFF)",
385
+ height=200
 
386
  )
387
 
388
  with gr.Row():
 
392
  maximum=8192,
393
  value=4096,
394
  step=512,
395
+ label="Max Tokens per Page (Higher values = more detailed extraction)"
 
396
  )
397
  with gr.Column(scale=1):
398
  with_img_desc_checkbox = gr.Checkbox(
399
+ label="Include Image Descriptions (Add AI-generated descriptions for images)",
400
+ value=False
 
401
  )
402
 
403
  extract_btn = gr.Button(