Update module_ocr.py
Browse files- module_ocr.py +6 -5
module_ocr.py
CHANGED
@@ -112,16 +112,17 @@ with gr.Blocks() as demo:
|
|
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=160
|
118 |
-
)
|
119 |
with gr.Column():
|
120 |
-
|
|
|
|
|
|
|
121 |
output_file = gr.File(
|
122 |
label="Download OCR'ed PDF",
|
123 |
height=50
|
124 |
)
|
|
|
|
|
125 |
|
126 |
# Input: anguage(s) used in document, output types
|
127 |
with gr.Row():
|
|
|
112 |
|
113 |
# Upload file to process
|
114 |
with gr.Row():
|
|
|
|
|
|
|
|
|
115 |
with gr.Column():
|
116 |
+
input_file = gr.File(
|
117 |
+
label="Upload an image or a PDF file of a scanned document",
|
118 |
+
height=160
|
119 |
+
)
|
120 |
output_file = gr.File(
|
121 |
label="Download OCR'ed PDF",
|
122 |
height=50
|
123 |
)
|
124 |
+
with gr.Column():
|
125 |
+
output_text = gr.Textbox(label="OCR output")
|
126 |
|
127 |
# Input: anguage(s) used in document, output types
|
128 |
with gr.Row():
|