prithivMLmods commited on
Commit
b8f13cf
·
verified ·
1 Parent(s): decd76c

update app

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -261,9 +261,9 @@ def generate_image(model_name: str, text: str, image: Image.Image,
261
  yield buffer, buffer
262
 
263
  image_examples = [
 
264
  ["Perform OCR on the image.", "examples/1.jpg"],
265
  ["Extract the contents. [page].", "examples/2.jpg"],
266
- ["OCR the content perfectly.", "examples/3.jpg"],
267
  ]
268
 
269
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
@@ -293,7 +293,7 @@ with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
293
  markdown_output = gr.Markdown(label="(Result.Md)")
294
 
295
  model_choice = gr.Radio(
296
- choices=["Nanonets-OCR2-3B", "Chandra-OCR", "olmOCR-2-7B-1025", "Dots.OCR"],
297
  label="Select Model",
298
  value="Nanonets-OCR2-3B"
299
  )
 
261
  yield buffer, buffer
262
 
263
  image_examples = [
264
+ ["OCR the content perfectly.", "examples/3.jpg"],
265
  ["Perform OCR on the image.", "examples/1.jpg"],
266
  ["Extract the contents. [page].", "examples/2.jpg"],
 
267
  ]
268
 
269
  with gr.Blocks(css=css, theme=steel_blue_theme) as demo:
 
293
  markdown_output = gr.Markdown(label="(Result.Md)")
294
 
295
  model_choice = gr.Radio(
296
+ choices=["Nanonets-OCR2-3B", "Chandra-OCR", "Dots.OCR", "olmOCR-2-7B-1025"],
297
  label="Select Model",
298
  value="Nanonets-OCR2-3B"
299
  )