BinKhoaLe1812 commited on
Commit
6fd1f03
·
verified ·
1 Parent(s): 2020627
Files changed (1) hide show
  1. app.py +0 -26
app.py CHANGED
@@ -292,32 +292,6 @@ with gr.Blocks(theme=gr.themes.Soft(), title="DeepSeek-OCR") as demo:
292
  with gr.Tab("Raw Text", id="tab_raw"):
293
  raw_out = gr.Textbox(lines=20, show_copy_button=True, show_label=False)
294
 
295
- gr.Examples(
296
- examples=[
297
- ["examples/ocr.jpg", "Gundam", "📋 Markdown", ""],
298
- ["examples/reachy-mini.jpg", "Gundam", "📍 Locate", "Robot"]
299
- ],
300
- inputs=[input_img, mode, task, prompt],
301
- cache_examples=False
302
- )
303
-
304
- with gr.Accordion("ℹ️ Info", open=False):
305
- gr.Markdown("""
306
- ### Modes
307
- - **Gundam**: 1024 base + 640 tiles with cropping - Best balance
308
- - **Tiny**: 512×512, no crop - Fastest
309
- - **Small**: 640×640, no crop - Quick
310
- - **Base**: 1024×1024, no crop - Standard
311
- - **Large**: 1280×1280, no crop - Highest quality
312
-
313
- ### Tasks
314
- - **Markdown**: Convert document to structured markdown (grounding ✅)
315
- - **Free OCR**: Simple text extraction
316
- - **Locate**: Find specific things in image (grounding ✅)
317
- - **Describe**: General image description
318
- - **Custom**: Your own prompt (add `<|grounding|>` for boxes)
319
- """)
320
-
321
  file_in.change(load_image, [file_in, page_selector], [input_img])
322
  file_in.change(update_page_selector, [file_in], [page_selector])
323
  page_selector.change(load_image, [file_in, page_selector], [input_img])
 
292
  with gr.Tab("Raw Text", id="tab_raw"):
293
  raw_out = gr.Textbox(lines=20, show_copy_button=True, show_label=False)
294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  file_in.change(load_image, [file_in, page_selector], [input_img])
296
  file_in.change(update_page_selector, [file_in], [page_selector])
297
  page_selector.change(load_image, [file_in, page_selector], [input_img])