Update module_ocr.py
Browse files- module_ocr.py +5 -1
module_ocr.py
CHANGED
@@ -140,7 +140,7 @@ with gr.Blocks() as demo:
|
|
140 |
label='Output type',
|
141 |
choices=['text', 'pdf', 'text+pdf'],
|
142 |
multiselect=False,
|
143 |
-
value='text',
|
144 |
scale=1
|
145 |
)
|
146 |
|
@@ -183,6 +183,10 @@ with gr.Blocks() as demo:
|
|
183 |
fn=lambda : (None, '', None),
|
184 |
inputs=[],
|
185 |
outputs=[input_file, output_text, output_file] # input_file, output_text, output_file
|
|
|
|
|
|
|
|
|
186 |
)
|
187 |
|
188 |
if __name__ == '__main__':
|
|
|
140 |
label='Output type',
|
141 |
choices=['text', 'pdf', 'text+pdf'],
|
142 |
multiselect=False,
|
143 |
+
value='text+pdf',
|
144 |
scale=1
|
145 |
)
|
146 |
|
|
|
183 |
fn=lambda : (None, '', None),
|
184 |
inputs=[],
|
185 |
outputs=[input_file, output_text, output_file] # input_file, output_text, output_file
|
186 |
+
).then(
|
187 |
+
update_visibility,
|
188 |
+
inputs=output_file,
|
189 |
+
outputs=output_file
|
190 |
)
|
191 |
|
192 |
if __name__ == '__main__':
|