edreesi commited on
Commit
d23d11b
·
verified ·
1 Parent(s): 17316c3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -264,16 +264,16 @@ def launch_demo():
264
  # with gr.Column(scale=3):
265
  # id_image_input2 = gr.Image(type='filepath', label='Back', elem_classes="example-image")
266
 
267
- with gr.Row():
268
- id_examples = gr.Examples(
269
- examples=[['examples/1_f.png', 'examples/1_b.png'],
270
- ['examples/2_f.png', 'examples/2_b.png'],
271
- ['examples/3_f.png', 'examples/3_b.png'],
272
- ['examples/4.png', None]],
273
- inputs=[id_image_input1, id_image_input1],
274
- outputs=None,
275
- fn=idcard_recognition
276
- )
277
 
278
  with gr.Blocks():
279
  with gr.Column(scale=4, min_width=400, elem_classes="block-background"):
@@ -303,7 +303,7 @@ def launch_demo():
303
 
304
  check_liveness_button.click(check_liveness, inputs=id_image_input, outputs=[liveness_result, json_output])
305
 
306
- gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Frecognito%2FID-Document-Verification"><img src="https://api.visitorbadge.io/api/combined?path=https%3A%2F%2Fhuggingface.co%2Fspaces%2Frecognito%2FID-Document-Verification&labelColor=%2337d67a&countColor=%23263759&style=flat" /></a>')
307
 
308
  demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)
309
 
 
264
  # with gr.Column(scale=3):
265
  # id_image_input2 = gr.Image(type='filepath', label='Back', elem_classes="example-image")
266
 
267
+ # with gr.Row():
268
+ # id_examples = gr.Examples(
269
+ # examples=[['examples/1_f.png', 'examples/1_b.png'],
270
+ # ['examples/2_f.png', 'examples/2_b.png'],
271
+ # ['examples/3_f.png', 'examples/3_b.png'],
272
+ # ['examples/4.png', None]],
273
+ # inputs=[id_image_input1, id_image_input1],
274
+ # outputs=None,
275
+ # fn=idcard_recognition
276
+ # )
277
 
278
  with gr.Blocks():
279
  with gr.Column(scale=4, min_width=400, elem_classes="block-background"):
 
303
 
304
  check_liveness_button.click(check_liveness, inputs=id_image_input, outputs=[liveness_result, json_output])
305
 
306
+ gr.HTML('<a href="https://visitorbadge.io/status?path=https%3A%2F%2Fedreesi-card-recognition.hf.space%2F"><img src="https://api.visitorbadge.io/api/visitors?path=https%3A%2F%2Fedreesi-card-recognition.hf.space%2F&countColor=%23263759" /></a>')
307
 
308
  demo.launch(server_name="0.0.0.0", server_port=7860, show_api=False)
309