Update module_ocr.py
Browse files- module_ocr.py +1 -1
module_ocr.py
CHANGED
|
@@ -216,7 +216,7 @@ with gr.Blocks() as demo:
|
|
| 216 |
# Update preview when file is uploaded
|
| 217 |
input_file.change(
|
| 218 |
fn=preview_file,
|
| 219 |
-
inputs=[
|
| 220 |
outputs=[preview_image, preview_text]
|
| 221 |
)
|
| 222 |
|
|
|
|
| 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 |
|