02alexander commited on
Commit
cbcc4bf
1 Parent(s): 5930569

create description

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -10,7 +10,7 @@ from gradio_rerun import Rerun # type: ignore
10
  from ocr import detect_and_log_layout # type: ignore
11
 
12
 
13
- @rr.thread_local_stream("OCR")
14
  def log_to_rr(img_path: Path):
15
  print(img_path)
16
  stream = rr.binary_stream()
@@ -27,7 +27,13 @@ def log_to_rr(img_path: Path):
27
 
28
  yield stream.read()
29
 
 
 
 
 
 
30
  with gr.Blocks() as demo:
 
31
  with gr.Row():
32
  with gr.Column(scale=1):
33
  with gr.Row():
 
10
  from ocr import detect_and_log_layout # type: ignore
11
 
12
 
13
+ @rr.thread_local_stream("PaddleOCR")
14
  def log_to_rr(img_path: Path):
15
  print(img_path)
16
  stream = rr.binary_stream()
 
27
 
28
  yield stream.read()
29
 
30
+ DESCRIPTION = """
31
+ This space demonstrates the ability to visualize and verify the document layout analysis and text detection using [PaddleOCR](https://github.com/PaddlePaddle/PaddleOCR).
32
+ The [PP-Structure](https://github.com/PaddlePaddle/PaddleOCR/tree/main/ppstructure) used for this task, which is an intelligent document analysis system developed by the PaddleOCR team, which aims to help developers better complete tasks related to document understanding such as layout analysis and table recognition.
33
+ """
34
+
35
  with gr.Blocks() as demo:
36
+ gr.Markdown(DESCRIPTION)
37
  with gr.Row():
38
  with gr.Column(scale=1):
39
  with gr.Row():