Update app.py
Browse files
app.py
CHANGED
|
@@ -114,7 +114,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 114 |
imgout = gr.Image(label='Uploaded document:',elem_id="inp")
|
| 115 |
with gr.Column(scale=1):
|
| 116 |
jsonout = gr.JSON(label='Extracted information:')
|
| 117 |
-
|
| 118 |
btn.click(fn=process_document, inputs=inp, outputs=[jsonout,imgout])
|
| 119 |
|
| 120 |
demo.launch()
|
|
|
|
| 114 |
imgout = gr.Image(label='Uploaded document:',elem_id="inp")
|
| 115 |
with gr.Column(scale=1):
|
| 116 |
jsonout = gr.JSON(label='Extracted information:')
|
| 117 |
+
imgout.change(fn=update_status,inputs=inp,outputs=[img2,img3])
|
| 118 |
btn.click(fn=process_document, inputs=inp, outputs=[jsonout,imgout])
|
| 119 |
|
| 120 |
demo.launch()
|