Spaces:
Running
Running
Update demo.py
Browse files
demo.py
CHANGED
|
@@ -211,11 +211,7 @@ with gr.Blocks() as demo:
|
|
| 211 |
with gr.Column(scale=3):
|
| 212 |
id_image_input1 = gr.Image(type='filepath', label='Front')
|
| 213 |
id_image_input2 = gr.Image(type='filepath', label='Back')
|
| 214 |
-
gr.Examples(
|
| 215 |
-
examples=[['idcard_examples/4.jpg', 'idcard_examples/5.jpg'], ['idcard_examples/6.jpg', 'idcard_examples/7.jpg'], ['idcard_examples/1.jpg', None], ['idcard_examples/2.jpg', None]],
|
| 216 |
-
inputs=[id_image_input1, id_image_input2],
|
| 217 |
-
outputs=None,
|
| 218 |
-
fn=idcard_recognition)
|
| 219 |
id_recognition_button = gr.Button("ID Card Recognition")
|
| 220 |
with gr.Column(scale=5):
|
| 221 |
id_result_output = gr.HTML()
|
|
|
|
| 211 |
with gr.Column(scale=3):
|
| 212 |
id_image_input1 = gr.Image(type='filepath', label='Front')
|
| 213 |
id_image_input2 = gr.Image(type='filepath', label='Back')
|
| 214 |
+
gr.Examples(['idcard_examples/1.jpg', 'idcard_examples/2.jpg', 'idcard_examples/3.jpg', 'idcard_examples/4.jpg'], inputs=id_image_input1)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 215 |
id_recognition_button = gr.Button("ID Card Recognition")
|
| 216 |
with gr.Column(scale=5):
|
| 217 |
id_result_output = gr.HTML()
|