ngoc commited on
Commit
a2b81e0
·
1 Parent(s): 6ef238c

update readme

Browse files
Files changed (1) hide show
  1. README.md +7 -4
README.md CHANGED
@@ -13,8 +13,11 @@
13
  # </div> -->
14
  ---
15
 
 
16
 
17
- ![](https://storage.googleapis.com/mle-courses-prod/users/61b6fa1ba83a7e37c8309756/private-files/ff27e200-e181-11f0-b179-8566ca0312de-Untitled_design_(3).png)
 
 
18
 
19
  <h1 align="center">
20
  ProtonX OCR tool: Table Detector
@@ -24,8 +27,6 @@ ProtonX OCR tool: Table Detector
24
  [![HuggingFace](https://img.shields.io/badge/HuggingFace-Model-black?logo=huggingface)](https://huggingface.co/protonx-models/protonx-tc)
25
  [![Website](https://img.shields.io/badge/protonx.co-Website-blue)](https://protonx.co)
26
  [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1V9B38kbQP17RR0-WqVcPt0R7C5RiZ1_x?usp=sharing)
27
-
28
-
29
  ## **Introduction**
30
 
31
  This model is a **binary image classification model** designed to determine **whether an input document image contains at least one table**.
@@ -131,7 +132,9 @@ import torch
131
  import torchvision
132
  from protonx import ProtonX
133
 
134
- client = ProtonX()
 
 
135
  prediction = client.ocr.detect_table(image_path="images/document_page_01.png")
136
 
137
  print(prediction)
 
13
  # </div> -->
14
  ---
15
 
16
+ <div align="center">
17
 
18
+ <p align="center">
19
+ <img src="https://storage.googleapis.com/mle-courses-prod/users/61b6fa1ba83a7e37c8309756/private-files/ff27e200-e181-11f0-b179-8566ca0312de-Untitled_design_(3).png" width="400"/>
20
+ </p>
21
 
22
  <h1 align="center">
23
  ProtonX OCR tool: Table Detector
 
27
  [![HuggingFace](https://img.shields.io/badge/HuggingFace-Model-black?logo=huggingface)](https://huggingface.co/protonx-models/protonx-tc)
28
  [![Website](https://img.shields.io/badge/protonx.co-Website-blue)](https://protonx.co)
29
  [![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/drive/1V9B38kbQP17RR0-WqVcPt0R7C5RiZ1_x?usp=sharing)
 
 
30
  ## **Introduction**
31
 
32
  This model is a **binary image classification model** designed to determine **whether an input document image contains at least one table**.
 
132
  import torchvision
133
  from protonx import ProtonX
134
 
135
+ client = ProtonX(
136
+ mode="offline"
137
+ )
138
  prediction = client.ocr.detect_table(image_path="images/document_page_01.png")
139
 
140
  print(prediction)