Update module_ocr.py
Browse files- module_ocr.py +10 -1
module_ocr.py
CHANGED
@@ -112,7 +112,10 @@ with gr.Blocks() as demo:
|
|
112 |
|
113 |
# Upload file to process
|
114 |
with gr.Row():
|
115 |
-
input_file = gr.File(
|
|
|
|
|
|
|
116 |
with gr.Column():
|
117 |
output_text = gr.Textbox(label="OCR output")
|
118 |
output_file = gr.File(label="Download OCR'ed PDF")
|
@@ -152,6 +155,12 @@ with gr.Blocks() as demo:
|
|
152 |
cache_examples=False,
|
153 |
label="Examples"
|
154 |
)
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
# Functions
|
157 |
ocr_btn.click(
|
|
|
112 |
|
113 |
# Upload file to process
|
114 |
with gr.Row():
|
115 |
+
input_file = gr.File(
|
116 |
+
label="Upload an image OR a PDF file of a scanned document",
|
117 |
+
height=100
|
118 |
+
)
|
119 |
with gr.Column():
|
120 |
output_text = gr.Textbox(label="OCR output")
|
121 |
output_file = gr.File(label="Download OCR'ed PDF")
|
|
|
155 |
cache_examples=False,
|
156 |
label="Examples"
|
157 |
)
|
158 |
+
|
159 |
+
# Documentation
|
160 |
+
with gr.Accordion("Documentation", open=False):
|
161 |
+
gr.Markdown(f"""
|
162 |
+
- Model: using the tesseract package for OCR 1.0 (traditional)
|
163 |
+
""")
|
164 |
|
165 |
# Functions
|
166 |
ocr_btn.click(
|