Update module_ocr.py
Browse files- module_ocr.py +5 -5
module_ocr.py
CHANGED
|
@@ -214,11 +214,11 @@ with gr.Blocks() as demo:
|
|
| 214 |
""")
|
| 215 |
|
| 216 |
# Update preview when file is uploaded
|
| 217 |
-
input_file.change(
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
)
|
| 222 |
|
| 223 |
# Functions
|
| 224 |
ocr_btn.click(
|
|
|
|
| 214 |
""")
|
| 215 |
|
| 216 |
# Update preview when file is uploaded
|
| 217 |
+
#input_file.change(
|
| 218 |
+
# fn=preview_file,
|
| 219 |
+
# inputs=[input_file],
|
| 220 |
+
# outputs=[preview_image, preview_text]
|
| 221 |
+
#)
|
| 222 |
|
| 223 |
# Functions
|
| 224 |
ocr_btn.click(
|