Update app.py
Browse files
app.py
CHANGED
@@ -83,12 +83,12 @@ with gr.Blocks(css=css) as demo:
|
|
83 |
with gr.Row().style():
|
84 |
with gr.Column(scale=1):
|
85 |
inp = gr.Image(label='Upload invoice here:') #.style(height=400)
|
86 |
-
with gr.Column():
|
87 |
-
gr.Examples([["example.jpg"], ["example_2.jpg"], ["example_3.jpg"]], inputs=[inp])
|
88 |
with gr.Row().style():
|
89 |
-
|
90 |
with gr.Row().style():
|
91 |
-
with gr.Column(scale=
|
92 |
imgout = gr.Image(label='Uploaded document:',elem_id="inp")
|
93 |
with gr.Column(scale=1):
|
94 |
jsonout = gr.JSON(label='Extracted information:')
|
|
|
83 |
with gr.Row().style():
|
84 |
with gr.Column(scale=1):
|
85 |
inp = gr.Image(label='Upload invoice here:') #.style(height=400)
|
86 |
+
with gr.Column(scale=2):
|
87 |
+
gr.Examples([["example.jpg"], ["example_2.jpg"], ["example_3.jpg"]], inputs=[inp],label='Or use one of these examples:')
|
88 |
with gr.Row().style():
|
89 |
+
btn = gr.Button("↓ Extract ↓")
|
90 |
with gr.Row().style():
|
91 |
+
with gr.Column(scale=2):
|
92 |
imgout = gr.Image(label='Uploaded document:',elem_id="inp")
|
93 |
with gr.Column(scale=1):
|
94 |
jsonout = gr.JSON(label='Extracted information:')
|