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

update readme

Browse files
Files changed (2) hide show
  1. README.md +4 -1
  2. app.py +1 -2
README.md CHANGED
@@ -7,4 +7,7 @@ sdk: gradio
7
  sdk_version: 4.36.1
8
  app_file: app.py
9
  pinned: false
10
- ---
 
 
 
 
7
  sdk_version: 4.36.1
8
  app_file: app.py
9
  pinned: false
10
+ ---
11
+
12
+ ## Huggingface space for the [OCR example](https://www.github.com/rerun-io/rerun/tree/main/examples/python/ocr)
13
+ You can view the space [here](https://www.huggingface.co/spaces/rerun/OCR) and the source code [here](https://www.github.com/rerun-io/rerun/tree/main/examples/python/ocr)
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("PaddleOCR")
14
  def log_to_rr(img_path: Path):
15
  print(img_path)
16
  stream = rr.binary_stream()
@@ -27,7 +27,6 @@ def log_to_rr(img_path: Path):
27
 
28
  yield stream.read()
29
 
30
-
31
  with gr.Blocks() as demo:
32
  with gr.Row():
33
  with gr.Column(scale=1):
 
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
 
28
  yield stream.read()
29
 
 
30
  with gr.Blocks() as demo:
31
  with gr.Row():
32
  with gr.Column(scale=1):