prithivMLmods commited on
Commit
524b387
·
verified ·
1 Parent(s): 35249bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -236,15 +236,14 @@ def generate_image(model_name: str, text: str, image: Image.Image,
236
  time.sleep(0.01)
237
  yield buffer, buffer
238
 
239
-
240
- # Define examples for image inference
241
  image_examples = [
242
- ["Extract the full page.", "images/ocr.png"],
243
- ["Extract the content.", "images/4.png"],
244
- ["Convert this page to doc [table] precisely for markdown.", "images/0.png"]
 
 
245
  ]
246
 
247
-
248
  # Create the Gradio Interface
249
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
250
  gr.Markdown("# **Multimodal OCR**", elem_id="main-title")
 
236
  time.sleep(0.01)
237
  yield buffer, buffer
238
 
 
 
239
  image_examples = [
240
+ ["Perform OCR on the image precisely.", "examples/5.jpg"],
241
+ ["Run OCR on the image and ensure high accuracy.", "examples/4.jpg"],
242
+ ["Conduct OCR on the image with exact text recognition.", "examples/2.jpg"],
243
+ ["Perform precise OCR extraction on the image.", "examples/1.jpg"],
244
+ ["Convert this page to docling", "examples/3.jpg"],
245
  ]
246
 
 
247
  # Create the Gradio Interface
248
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
249
  gr.Markdown("# **Multimodal OCR**", elem_id="main-title")